Table of Contents

Class DataReaderExtensions

Namespace
FluentCommand
Assembly
FluentCommand.dll

Extension methods for IDataReader

public static class DataReaderExtensions
Inheritance
DataReaderExtensions
Inherited Members

Methods

DynamicFactory(IDataReader)

A factory for creating dynamic objects from the current row in the IDataReader.

public static dynamic DynamicFactory(IDataReader reader)

Parameters

reader IDataReader

The open IDataReader to get the object from.

Returns

dynamic

A dynamic object having property names set that match the field names in the IDataReader.

EntityFactory<TEntity>(IDataReader)

A factory for creating TEntity objects from the current row in the IDataReader.

[Obsolete("Use generated data reader factory")]
public static TEntity EntityFactory<TEntity>(this IDataReader reader) where TEntity : class, new()

Parameters

reader IDataReader

The open IDataReader to get the object from.

Returns

TEntity

A TEntity object having property names set that match the field names in the IDataReader.

Type Parameters

TEntity

The type of the entity.