|
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.
|
Base class for mapping values to properties by the ReflectionRowMapper<TResult>. More...
Public Member Functions | |
| abstract object | GetPropertyValue (IDataRecord row) |
| When implemented by a class, extracts the value for the mapped property from row . More... | |
| void | Map (object instance, IDataRecord row) |
| Performs the actual mapping from column to property. More... | |
Protected Member Functions | |
| PropertyMapping (PropertyInfo property) | |
| Initializes a new PropertyMapping. More... | |
| void | SetValue (object instance, object value) |
| Sets the value to instance using PropertyMapping.Property. More... | |
Static Protected Member Functions | |
| static object | ConvertValue (object value, Type conversionType) |
| Converts the database value value to conversionType . More... | |
| static object | ConvertNullableValue (object value, Type conversionType) |
| Converts the database value value to conversionType , where conversionType is a nullable value. More... | |
| static object | ConvertNonNullableValue (object value, Type conversionType) |
| Converts the database value value to conversionType . Will throw an exception if conversionType is a nullable value. More... | |
Properties | |
| PropertyInfo | Property [get] |
| Gets the property that will be mapped to. More... | |
Base class for mapping values to properties by the ReflectionRowMapper<TResult>.
|
protected |
Initializes a new PropertyMapping.
|
staticprotected |
Converts the database value value to conversionType . Will throw an exception if conversionType is a nullable value.
| value | Value from the database. |
| conversionType | Type to convert to. |
|
staticprotected |
Converts the database value value to conversionType , where conversionType is a nullable value.
| value | Value from the database. |
| conversionType | Type to convert to. |
|
staticprotected |
Converts the database value value to conversionType .
|
pure virtual |
When implemented by a class, extracts the value for the mapped property from row .
| row | The data record. |
Implemented in Microsoft.Practices.EnterpriseLibrary.Data.FuncMapping, and Microsoft.Practices.EnterpriseLibrary.Data.ColumnNameMapping.
| void Microsoft.Practices.EnterpriseLibrary.Data.PropertyMapping.Map | ( | object | instance, |
| IDataRecord | row | ||
| ) |
Performs the actual mapping from column to property.
| instance | The object that contains the PropertyMapping.Property. |
| row | The row that contains the ColumnNameMapping.ColumnName. |
|
protected |
Sets the value to instance using PropertyMapping.Property.
| instance | The object value will be assigned to. |
| value | The value that will be assigned to instance . |
|
get |
Gets the property that will be mapped to.