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.ReflectionRowMapper< TResult > Class Template Reference

An implementation of IRowMapper<TResult> that uses reflection to convert data rows to TResult . Instances of this class can be build using the MapBuilder<TResult> API. More...

Inheritance diagram for Microsoft.Practices.EnterpriseLibrary.Data.ReflectionRowMapper< TResult >:
Microsoft.Practices.EnterpriseLibrary.Data.IRowMapper< TResult >

Public Member Functions

 ReflectionRowMapper (IDictionary< PropertyInfo, PropertyMapping > propertyMappings)
 Creates a new instance of ReflectionRowMapper<TResult>. More...
 
TResult MapRow (IDataRecord row)
 Given a record from a data reader, map the contents to a common language runtime object. More...
 

Detailed Description

An implementation of IRowMapper<TResult> that uses reflection to convert data rows to TResult . Instances of this class can be build using the MapBuilder<TResult> API.

Template Parameters
TResultThe type this IRowMapper<TResult> applies to
See also
MapBuilder<TResult>
Type Constraints
TResult :new() 

Constructor & Destructor Documentation

◆ ReflectionRowMapper()

Microsoft.Practices.EnterpriseLibrary.Data.ReflectionRowMapper< TResult >.ReflectionRowMapper ( IDictionary< PropertyInfo, PropertyMapping propertyMappings)

Creates a new instance of ReflectionRowMapper<TResult>.

Parameters
propertyMappingsThe PropertyMapping's that specify how each property should be mapped.
Exceptions
ArgumentNullExceptionpropertyMappings is null.

Member Function Documentation

◆ MapRow()

TResult Microsoft.Practices.EnterpriseLibrary.Data.ReflectionRowMapper< TResult >.MapRow ( IDataRecord  row)

Given a record from a data reader, map the contents to a common language runtime object.

Parameters
rowThe input data from the database.
Returns
The mapped object.

Implements Microsoft.Practices.EnterpriseLibrary.Data.IRowMapper< TResult >.


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