CSLA .NET 10.0.0
A home for your business logic
Loading...
Searching...
No Matches
Csla.Data.DataMap Class Reference

Defines a mapping between two sets of properties/fields for use by DataMapper. More...

Classes

class  MemberMapping

Public Member Functions

 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.

Detailed Description

Defines a mapping between two sets of properties/fields for use by DataMapper.

Constructor & Destructor Documentation

◆ DataMap() [1/2]

Csla.Data.DataMap.DataMap ( Type sourceType,
Type targetType )
inline

Initializes an instance of the type.

Parameters
sourceTypeType of source object.
targetTypeType of target object.
Exceptions
ArgumentNullExceptionsourceType 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
sourceTypeType of source object.
targetTypeType of target object.
includedPropertyNamesList of property names to map 1:1.
Exceptions
ArgumentNullExceptionsourceType , targetType or includedPropertyNames is null.

Member Function Documentation

◆ AddFieldMapping()

void Csla.Data.DataMap.AddFieldMapping ( string sourceField,
string targetField )
inline

Adds a field to field mapping.

Parameters
sourceFieldName of source field.
targetFieldName of target field.
Exceptions
ArgumentExceptionsourceField 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
sourceFieldName of source field.
targetPropertyName of target property.
Exceptions
ArgumentExceptionsourceField 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
sourcePropertyName of source property.
targetPropertyName of target property.
Exceptions
ArgumentExceptionsourceProperty 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
sourcePropertyName of source property.
targetFieldName of target field.
Exceptions
ArgumentExceptionsourceProperty or targetField is null, string.Empty or only consists of white spaces.

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