Defines a mapping between two sets of properties/fields for use by DataMapper.
More...
|
| | DataMap (Type sourceType, Type targetType) |
| | Initializes an instance of the type.
|
| | DataMap (Type sourceType, Type targetType, IEnumerable< string > includedPropertyNames) |
| | Initializes an instance of the type.
|
| void | AddPropertyMapping (string sourceProperty, string targetProperty) |
| | Adds a property to property mapping.
|
| void | AddFieldMapping (string sourceField, string targetField) |
| | Adds a field to field mapping.
|
| void | AddFieldToPropertyMapping (string sourceField, string targetProperty) |
| | Adds a field to property mapping.
|
| void | AddPropertyToFieldMapping (string sourceProperty, string targetField) |
| | Adds a property to field mapping.
|
Defines a mapping between two sets of properties/fields for use by DataMapper.
◆ DataMap() [1/2]
| Csla.Data.DataMap.DataMap |
( |
Type | sourceType, |
|
|
Type | targetType ) |
|
inline |
Initializes an instance of the type.
- Parameters
-
| sourceType | Type of source object. |
| targetType | Type of target object. |
- Exceptions
-
| ArgumentNullException | sourceType or targetType is null. |
◆ DataMap() [2/2]
| Csla.Data.DataMap.DataMap |
( |
Type | sourceType, |
|
|
Type | targetType, |
|
|
IEnumerable< string > | includedPropertyNames ) |
|
inline |
Initializes an instance of the type.
- Parameters
-
| sourceType | Type of source object. |
| targetType | Type of target object. |
| includedPropertyNames | List of property names to map 1:1. |
- Exceptions
-
| ArgumentNullException | sourceType , targetType or includedPropertyNames is null. |
◆ AddFieldMapping()
| void Csla.Data.DataMap.AddFieldMapping |
( |
string | sourceField, |
|
|
string | targetField ) |
|
inline |
Adds a field to field mapping.
- Parameters
-
| sourceField | Name of source field. |
| targetField | Name of target field. |
- Exceptions
-
| ArgumentException | sourceField or targetField is null, string.Empty or only consists of white spaces. |
◆ AddFieldToPropertyMapping()
| void Csla.Data.DataMap.AddFieldToPropertyMapping |
( |
string | sourceField, |
|
|
string | targetProperty ) |
|
inline |
Adds a field to property mapping.
- Parameters
-
| sourceField | Name of source field. |
| targetProperty | Name of target property. |
- Exceptions
-
| ArgumentException | sourceField or targetProperty is null, string.Empty or only consists of white spaces. |
◆ AddPropertyMapping()
| void Csla.Data.DataMap.AddPropertyMapping |
( |
string | sourceProperty, |
|
|
string | targetProperty ) |
|
inline |
Adds a property to property mapping.
- Parameters
-
| sourceProperty | Name of source property. |
| targetProperty | Name of target property. |
- Exceptions
-
| ArgumentException | sourceProperty or targetProperty is null, string.Empty or only consists of white spaces. |
◆ AddPropertyToFieldMapping()
| void Csla.Data.DataMap.AddPropertyToFieldMapping |
( |
string | sourceProperty, |
|
|
string | targetField ) |
|
inline |
Adds a property to field mapping.
- Parameters
-
| sourceProperty | Name of source property. |
| targetField | Name of target field. |
- Exceptions
-
| ArgumentException | sourceProperty or targetField is null, string.Empty or only consists of white spaces. |
The documentation for this class was generated from the following file: