Interface ISqlSchemaCollection
Represents a collection of SQL schemas.
public interface ISqlSchemaCollection : IReadOnlyCollection<ISqlSchema>, IEnumerable<ISqlSchema>, IEnumerable
- Inherited Members
Properties
Database
Database that this collection belongs to.
ISqlDatabase Database { get; }
Property Value
Default
Default schema.
ISqlSchema Default { get; }
Property Value
Methods
Contains(string)
Checks whether or not a schema with the provided name
exists.
[Pure]
bool Contains(string name)
Parameters
name
stringName to check.
Returns
- bool
true when schema exists, otherwise false.
Get(string)
Returns a schema with the provided name
.
[Pure]
ISqlSchema Get(string name)
Parameters
name
stringName of the schema to return.
Returns
- ISqlSchema
Existing schema.
Exceptions
- KeyNotFoundException
When schema does not exist.
TryGet(string)
Attempts to return a schema with the provided name
.
[Pure]
ISqlSchema? TryGet(string name)
Parameters
name
stringName of the schema to return.
Returns
- ISqlSchema
Existing schema or null when schema does not exist.