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.IMapBuilderContext< TResult > Interface Template Reference

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

Inheritance diagram for Microsoft.Practices.EnterpriseLibrary.Data.IMapBuilderContext< TResult >:
Microsoft.Practices.EnterpriseLibrary.Data.IMapBuilderContextTest< TResult >

Public Member Functions

IMapBuilderContext< TResult > MapByName (PropertyInfo property)
 Adds a property mapping to the context for property that specifies this property will be mapped to a column with a matching name. More...
 
IMapBuilderContext< TResult > MapByName< TMember > (Expression< Func< TResult, TMember >> propertySelector)
 Adds a property mapping to the context for propertySelector that specifies this property will be mapped to a column with a matching name. More...
 
IMapBuilderContext< TResult > DoNotMap (PropertyInfo property)
 Adds a property mapping to the context for property that specifies this property will be ignored while mapping. More...
 
IMapBuilderContext< TResult > DoNotMap< TMember > (Expression< Func< TResult, TMember >> propertySelector)
 Adds a property mapping to the context for propertySelector that specifies this property will be ignored while mapping. More...
 
IMapBuilderContextMap< TResult, TMember > Map< TMember > (Expression< Func< TResult, TMember >> propertySelector)
 Adds a property mapping to the context for propertySelector . More...
 
IMapBuilderContextMap< TResult, object > Map (PropertyInfo property)
 Adds a property mapping to the context for property . More...
 
IRowMapper< TResult > Build ()
 Builds the IRowMapper<TResult> that can be used to map data structures to clr types. 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.

Member Function Documentation

◆ Build()

Builds the IRowMapper<TResult> that can be used to map data structures to clr types.

Returns
An instance of IRowMapper<TResult>.

◆ DoNotMap()

IMapBuilderContext<TResult> Microsoft.Practices.EnterpriseLibrary.Data.IMapBuilderContext< TResult >.DoNotMap ( PropertyInfo  property)

Adds a property mapping to the context for property that specifies this property will be ignored while mapping.

Parameters
propertyThe property of TResult that should be mapped.
Returns
The fluent interface that can be used further specify mappings.

◆ DoNotMap< TMember >()

IMapBuilderContext<TResult> Microsoft.Practices.EnterpriseLibrary.Data.IMapBuilderContext< TResult >.DoNotMap< TMember > ( Expression< Func< TResult, TMember >>  propertySelector)

Adds a property mapping to the context for propertySelector that specifies this property will be ignored while mapping.

Parameters
propertySelectorA lambda function that returns the property that should be mapped.
Returns
The fluent interface that can be used further specify mappings.

◆ Map()

IMapBuilderContextMap<TResult, object> Microsoft.Practices.EnterpriseLibrary.Data.IMapBuilderContext< TResult >.Map ( PropertyInfo  property)

Adds a property mapping to the context for property .

Parameters
propertyThe property of TResult that should be mapped.
Returns
The fluent interface that can be used to specify how to map this property.

◆ Map< TMember >()

IMapBuilderContextMap<TResult, TMember> Microsoft.Practices.EnterpriseLibrary.Data.IMapBuilderContext< TResult >.Map< TMember > ( Expression< Func< TResult, TMember >>  propertySelector)

Adds a property mapping to the context for propertySelector .

Parameters
propertySelectorA lambda function that returns the property that should be mapped.
Returns
The fluent interface that can be used to specify how to map this property.

◆ MapByName()

IMapBuilderContext<TResult> Microsoft.Practices.EnterpriseLibrary.Data.IMapBuilderContext< TResult >.MapByName ( PropertyInfo  property)

Adds a property mapping to the context for property that specifies this property will be mapped to a column with a matching name.

Parameters
propertyThe property of TResult that should be mapped.
Returns
The fluent interface that can be used further specify mappings.

◆ MapByName< TMember >()

IMapBuilderContext<TResult> Microsoft.Practices.EnterpriseLibrary.Data.IMapBuilderContext< TResult >.MapByName< TMember > ( Expression< Func< TResult, TMember >>  propertySelector)

Adds a property mapping to the context for propertySelector that specifies this property will be mapped to a column with a matching name.

Parameters
propertySelectorA lambda function that returns the property that should be mapped.
Returns
The fluent interface that can be used further specify mappings.

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