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.
|
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...
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... | |
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.
TResult | The type this IRowMapper<TResult> applies to |
TResult | : | new() |
Microsoft.Practices.EnterpriseLibrary.Data.ReflectionRowMapper< TResult >.ReflectionRowMapper | ( | IDictionary< PropertyInfo, PropertyMapping > | propertyMappings | ) |
Creates a new instance of ReflectionRowMapper<TResult>.
propertyMappings | The PropertyMapping's that specify how each property should be mapped. |
ArgumentNullException | propertyMappings is null. |
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.
row | The input data from the database. |
Implements Microsoft.Practices.EnterpriseLibrary.Data.IRowMapper< TResult >.