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

This type supports the Enterprise Library infrastructure and is not intended to be used directly from your code. More...

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

Public Member Functions

IEnumerable< PropertyMappingGetPropertyMappings ()
 Returns the list of PropertyMappings that have been accumulated by the context. More...
 
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

This type supports the Enterprise Library infrastructure and is not intended to be used directly from your code.

See also
IMapBuilderContext<TResult>

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)
inherited

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)
inherited

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.

◆ GetPropertyMappings()

Returns the list of PropertyMappings that have been accumulated by the context.

Returns
The list of PropertyMapping.

◆ Map()

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

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)
inherited

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)
inherited

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)
inherited

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: