Enterprise Library Data Access Application Block  7.0-rc1
The Data Access Application Block abstracts the actual database you are using, and exposes a collection of methods that make it easy to access that database and to perform common tasks.
Microsoft.Practices.EnterpriseLibrary.Data.IMapBuilderContextMap< TResult, TMember > Interface Template Reference

A fluent interface that can be used to construct a IRowMapper<TResult>. More...

Inheritance diagram for Microsoft.Practices.EnterpriseLibrary.Data.IMapBuilderContextMap< TResult, TMember >:

Public Member Functions

IMapBuilderContext< TResult > ToColumn (string columnName)
 Maps the current property to a column with the given name. More...
 
IMapBuilderContext< TResult > WithFunc (Func< IDataRecord, TMember > f)
 Maps the current property to a user specified function. More...
 

Detailed Description

A fluent interface that can be used to construct a IRowMapper<TResult>.

Template Parameters
TResultThe type for which a IRowMapper<TResult> should be build.
TMemberThe type of the member for which a mapping needs to specified.
See also
IMapBuilderContext<TResult>

Member Function Documentation

◆ ToColumn()

IMapBuilderContext<TResult> Microsoft.Practices.EnterpriseLibrary.Data.IMapBuilderContextMap< TResult, TMember >.ToColumn ( string  columnName)

Maps the current property to a column with the given name.

Parameters
columnNameThe name of the column the current property should be mapped to.
Returns
The fluent interface that can be used further specify mappings.

◆ WithFunc()

IMapBuilderContext<TResult> Microsoft.Practices.EnterpriseLibrary.Data.IMapBuilderContextMap< TResult, TMember >.WithFunc ( Func< IDataRecord, TMember >  f)

Maps the current property to a user specified function.

Parameters
fThe user specified function that will map the current property.
Returns
The fluent interface that can be used further specify mappings.

The documentation for this interface was generated from the following file: