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