Table of Contents

Class FastSingleOrDefaultTypeParser<TOpt, T>

Namespace
Rinku.Mapping.Parsers.Defaults
Assembly
Rinku.dll

Returns the default value for no result through a row delegate and refuses a second result.

public sealed class FastSingleOrDefaultTypeParser<TOpt, T> : BaseFastSingleTypeParser<TOpt, T>, ITypeParser<TOpt>, ITypeParser, IDisposable where TOpt : struct, IWrapping<TOpt, T>

Type Parameters

TOpt
T
Inheritance
FastSingleOrDefaultTypeParser<TOpt, T>
Implements
Inherited Members
Extension Methods

Constructors

FastSingleOrDefaultTypeParser(CommandBehavior, Func<DbDataReader, T>, ITypeParser)

Returns the default value for no result through a row delegate and refuses a second result.

public FastSingleOrDefaultTypeParser(CommandBehavior behavior, Func<DbDataReader, T> parser, ITypeParser schemaParser)

Parameters

behavior CommandBehavior
parser Func<DbDataReader, T>
schemaParser ITypeParser

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