Table of Contents

Class MySqlViewDataFieldCollection

Namespace
LfrlAnvil.MySql.Objects
Assembly
LfrlAnvil.MySql.dll

Represents a collection of SQL view data fields.

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

Remarks

MySqlDialect implementation.

Properties

View

View that this collection belongs to.

public MySqlView View { get; }

Property Value

MySqlView

Methods

CreateDataField(string)

Creates a new SqlViewDataField instance.

protected override MySqlViewDataField CreateDataField(string name)

Parameters

name string

Data field's name.

Returns

MySqlViewDataField

New SqlViewDataField instance.

Get(string)

Returns a data field with the provided name.

[Pure]
public MySqlViewDataField Get(string name)

Parameters

name string

Name of the data field to return.

Returns

MySqlViewDataField

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, MySqlViewDataField> GetEnumerator()

Returns

SqlObjectEnumerator<SqlViewDataField, MySqlViewDataField>

New SqlObjectEnumerator<TSource, TDestination> instance.

TryGet(string)

Attempts to return a data field with the provided name.

[Pure]
public MySqlViewDataField? TryGet(string name)

Parameters

name string

Name of the data field to return.

Returns

MySqlViewDataField

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