Class MultiRowCollectionTypeParser<T, TState>
Reads a multi row collection and returns an empty collection when no row is available.
public class MultiRowCollectionTypeParser<T, TState> : MultiRowTypeParser<T, TState>, ITypeParser<T>, ITypeParser, IDisposable where TState : IMultiRowState<T>, new()
Type Parameters
TTState
- Inheritance
-
MultiRowTypeParser<T, TState>MultiRowCollectionTypeParser<T, TState>
- Implements
-
ITypeParser<T>
- Inherited Members
- Extension Methods
Constructors
MultiRowCollectionTypeParser(ColumnInfo[])
Creates a collection parser for the supplied schema.
public MultiRowCollectionTypeParser(ColumnInfo[] schema)
Parameters
schemaColumnInfo[]
MultiRowCollectionTypeParser(ColumnInfo[], CommandBehavior)
Creates a collection parser for the supplied schema and reader behavior.
public MultiRowCollectionTypeParser(ColumnInfo[] schema, CommandBehavior behavior)
Parameters
schemaColumnInfo[]behaviorCommandBehavior
Methods
Default()
The value to return when the result has no row, an empty collection or optional, for instance.
public override T Default()
Returns
- T