Table of Contents

Class SqliteColumnCollection

Namespace
LfrlAnvil.Sqlite.Objects
Assembly
LfrlAnvil.Sqlite.dll

Represents a collection of SQL table columns.

public sealed class SqliteColumnCollection : SqlColumnCollection, ISqlColumnCollection, IReadOnlyCollection<ISqlColumn>, IEnumerable<ISqlColumn>, IEnumerable
Inheritance
SqliteColumnCollection
Implements
Inherited Members

Remarks

SqliteDialect implementation.

Properties

Table

Table that this collection belongs to.

public SqliteTable Table { get; }

Property Value

SqliteTable

Methods

CreateColumn(SqlColumnBuilder)

Creates a new SqlColumn instance.

protected override SqliteColumn CreateColumn(SqlColumnBuilder builder)

Parameters

builder SqlColumnBuilder

Source column builder.

Returns

SqliteColumn

New SqlColumn instance.

Get(string)

Returns a column with the provided name.

[Pure]
public SqliteColumn Get(string name)

Parameters

name string

Name of the column to return.

Returns

SqliteColumn

Existing column.

Exceptions

KeyNotFoundException

When column does not exist.

GetEnumerator()

Creates a new SqlObjectEnumerator<TSource, TDestination> instance for this collection.

[Pure]
public SqlObjectEnumerator<SqlColumn, SqliteColumn> GetEnumerator()

Returns

SqlObjectEnumerator<SqlColumn, SqliteColumn>

New SqlObjectEnumerator<TSource, TDestination> instance.

TryGet(string)

Attempts to return a column with the provided name.

[Pure]
public SqliteColumn? TryGet(string name)

Parameters

name string

Name of the column to return.

Returns

SqliteColumn

Existing column or null when column does not exist.