Table of Contents

Interface ISqlSchemaCollection

Namespace
LfrlAnvil.Sql.Objects
Assembly
LfrlAnvil.Sql.Core.dll

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

ISqlDatabase

Default

Default schema.

ISqlSchema Default { get; }

Property Value

ISqlSchema

Methods

Contains(string)

Checks whether or not a schema with the provided name exists.

[Pure]
bool Contains(string name)

Parameters

name string

Name 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 string

Name 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 string

Name of the schema to return.

Returns

ISqlSchema

Existing schema or null when schema does not exist.