Table of Contents

Interface ISqlViewDataFieldCollection

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

Represents a collection of SQL view data fields.

public interface ISqlViewDataFieldCollection : IReadOnlyCollection<ISqlViewDataField>, IEnumerable<ISqlViewDataField>, IEnumerable
Inherited Members

Properties

View

View that this collection belongs to.

ISqlView View { get; }

Property Value

ISqlView

Methods

Contains(string)

Checks whether or not a data field with the provided name exists.

[Pure]
bool Contains(string name)

Parameters

name string

Name to check.

Returns

bool

true when data field exists, otherwise false.

Get(string)

Returns a data field with the provided name.

[Pure]
ISqlViewDataField Get(string name)

Parameters

name string

Name of the data field to return.

Returns

ISqlViewDataField

Existing data field.

Exceptions

KeyNotFoundException

When data field does not exist.

TryGet(string)

Attempts to return a data field with the provided name.

[Pure]
ISqlViewDataField? TryGet(string name)

Parameters

name string

Name of the data field to return.

Returns

ISqlViewDataField

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