Table of Contents

Interface ISqlColumnCollection

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

Represents a collection of SQL table columns.

public interface ISqlColumnCollection : IReadOnlyCollection<ISqlColumn>, IEnumerable<ISqlColumn>, IEnumerable
Inherited Members

Properties

Table

Table that this collection belongs to.

ISqlTable Table { get; }

Property Value

ISqlTable

Methods

Contains(string)

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

[Pure]
bool Contains(string name)

Parameters

name string

Name to check.

Returns

bool

true when column exists, otherwise false.

Get(string)

Returns a column with the provided name.

[Pure]
ISqlColumn Get(string name)

Parameters

name string

Name of the column to return.

Returns

ISqlColumn

Existing column.

Exceptions

KeyNotFoundException

When column does not exist.

TryGet(string)

Attempts to return a column with the provided name.

[Pure]
ISqlColumn? TryGet(string name)

Parameters

name string

Name of the column to return.

Returns

ISqlColumn

Existing column or null when column does not exist.