Table of Contents

Class PostgreSqlViewDataFieldCollection

Namespace
LfrlAnvil.PostgreSql.Objects
Assembly
LfrlAnvil.PostgreSql.dll

Represents a collection of SQL view data fields.

public sealed class PostgreSqlViewDataFieldCollection : SqlViewDataFieldCollection, ISqlViewDataFieldCollection, IReadOnlyCollection<ISqlViewDataField>, IEnumerable<ISqlViewDataField>, IEnumerable
Inheritance
PostgreSqlViewDataFieldCollection
Implements
Inherited Members

Remarks

PostgreSqlDialect implementation.

Properties

View

View that this collection belongs to.

public PostgreSqlView View { get; }

Property Value

PostgreSqlView

Methods

CreateDataField(string)

Creates a new SqlViewDataField instance.

protected override PostgreSqlViewDataField CreateDataField(string name)

Parameters

name string

Data field's name.

Returns

PostgreSqlViewDataField

New SqlViewDataField instance.

Get(string)

Returns a data field with the provided name.

[Pure]
public PostgreSqlViewDataField Get(string name)

Parameters

name string

Name of the data field to return.

Returns

PostgreSqlViewDataField

Existing data field.

Exceptions

KeyNotFoundException

When data field does not exist.

GetEnumerator()

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

[Pure]
public SqlObjectEnumerator<SqlViewDataField, PostgreSqlViewDataField> GetEnumerator()

Returns

SqlObjectEnumerator<SqlViewDataField, PostgreSqlViewDataField>

New SqlObjectEnumerator<TSource, TDestination> instance.

TryGet(string)

Attempts to return a data field with the provided name.

[Pure]
public PostgreSqlViewDataField? TryGet(string name)

Parameters

name string

Name of the data field to return.

Returns

PostgreSqlViewDataField

Existing data field or null when data field does not exist.