Represents a property that will be assigned the value of a user specified function when mapping.
More...
|
| FuncMapping (PropertyInfo property, Func< IDataRecord, object > func) |
| Creates a new instance of FuncMapping More...
|
|
override object | GetPropertyValue (IDataRecord row) |
| Gets the value for the mapped property from the row . More...
|
|
void | Map (object instance, IDataRecord row) |
| Performs the actual mapping from column to property. More...
|
|
|
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...
|
|
|
Func< IDataRecord, object > | Func [get] |
| Gets the function that will be used to map the properties value. More...
|
|
PropertyInfo | Property [get] |
| Gets the property that will be mapped to. More...
|
|
Represents a property that will be assigned the value of a user specified function when mapping.
◆ FuncMapping()
Microsoft.Practices.EnterpriseLibrary.Data.FuncMapping.FuncMapping |
( |
PropertyInfo |
property, |
|
|
Func< IDataRecord, object > |
func |
|
) |
| |
Creates a new instance of FuncMapping
- Parameters
-
func | The func that will be used to map the property. |
property | The property that will be used to map to. |
- Exceptions
-
ArgumentNullException | func is null. |
◆ ConvertNonNullableValue()
static object Microsoft.Practices.EnterpriseLibrary.Data.PropertyMapping.ConvertNonNullableValue |
( |
object |
value, |
|
|
Type |
conversionType |
|
) |
| |
|
staticprotectedinherited |
Converts the database value value to conversionType . Will throw an exception if conversionType is a nullable value.
- Parameters
-
value | Value from the database. |
conversionType | Type to convert to. |
- Returns
- The converted value.
◆ ConvertNullableValue()
static object Microsoft.Practices.EnterpriseLibrary.Data.PropertyMapping.ConvertNullableValue |
( |
object |
value, |
|
|
Type |
conversionType |
|
) |
| |
|
staticprotectedinherited |
Converts the database value value to conversionType , where conversionType is a nullable value.
- Parameters
-
value | Value from the database. |
conversionType | Type to convert to. |
- Returns
- The converted value.
◆ ConvertValue()
static object Microsoft.Practices.EnterpriseLibrary.Data.PropertyMapping.ConvertValue |
( |
object |
value, |
|
|
Type |
conversionType |
|
) |
| |
|
staticprotectedinherited |
Converts the database value value to conversionType .
◆ GetPropertyValue()
override object Microsoft.Practices.EnterpriseLibrary.Data.FuncMapping.GetPropertyValue |
( |
IDataRecord |
row | ) |
|
|
virtual |
◆ Map()
void Microsoft.Practices.EnterpriseLibrary.Data.PropertyMapping.Map |
( |
object |
instance, |
|
|
IDataRecord |
row |
|
) |
| |
|
inherited |
Performs the actual mapping from column to property.
- Parameters
-
◆ SetValue()
void Microsoft.Practices.EnterpriseLibrary.Data.PropertyMapping.SetValue |
( |
object |
instance, |
|
|
object |
value |
|
) |
| |
|
protectedinherited |
Sets the value to instance using PropertyMapping.Property.
- Parameters
-
instance | The object value will be assigned to. |
value | The value that will be assigned to instance . |
◆ Func
Func<IDataRecord, object> Microsoft.Practices.EnterpriseLibrary.Data.FuncMapping.Func |
|
get |
Gets the function that will be used to map the properties value.
◆ Property
PropertyInfo Microsoft.Practices.EnterpriseLibrary.Data.PropertyMapping.Property |
|
getinherited |
Gets the property that will be mapped to.
The documentation for this class was generated from the following file: