Class FastSingleTypeParser<TOpt, T>
Requires exactly one result through a row delegate.
public sealed class FastSingleTypeParser<TOpt, T> : BaseFastSingleTypeParser<TOpt, T>, ITypeParser<TOpt>, ITypeParser, IDisposable where TOpt : struct, IWrapping<TOpt, T>
Type Parameters
TOptT
- Inheritance
-
BaseTypeParser<TOpt>BaseFastSingleTypeParser<TOpt, T>FastSingleTypeParser<TOpt, T>
- Implements
-
ITypeParser<TOpt>
- Inherited Members
- Extension Methods
Constructors
FastSingleTypeParser(CommandBehavior, Func<DbDataReader, T>, ITypeParser)
Requires exactly one result through a row delegate.
public FastSingleTypeParser(CommandBehavior behavior, Func<DbDataReader, T> parser, ITypeParser schemaParser)
Parameters
behaviorCommandBehaviorparserFunc<DbDataReader, T>schemaParserITypeParser
Methods
Default()
The value to return when the result has no row, an empty collection or optional, for instance.
public override TOpt Default()
Returns
- TOpt