Interface ISqlColumnCollection
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
Methods
Contains(string)
Checks whether or not a column with the provided name exists.
[Pure]
bool Contains(string name)
Parameters
namestringName 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
namestringName 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
namestringName of the column to return.
Returns
- ISqlColumn
Existing column or null when column does not exist.