CSLA.NET 6.0.0
CSLA .NET is a software development framework that helps you build a reusable, maintainable object-oriented business layer for your app.
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. More...
 
 DataMap (Type sourceType, Type targetType, IEnumerable< string > includedPropertyNames)
 Initializes an instance of the type. More...
 
void AddPropertyMapping (string sourceProperty, string targetProperty)
 Adds a property to property mapping. More...
 
void AddFieldMapping (string sourceField, string targetField)
 Adds a field to field mapping. More...
 
void AddFieldToPropertyMapping (string sourceField, string targetProperty)
 Adds a field to property mapping. More...
 
void AddPropertyToFieldMapping (string sourceProperty, string targetField)
 Adds a property to field mapping. More...
 

Detailed Description

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

Definition at line 19 of file DataMap.cs.

Constructor & Destructor Documentation

◆ DataMap() [1/2]

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

Initializes an instance of the type.

Parameters
sourceTypeType of source object.
targetTypeType of target object.

Definition at line 50 of file DataMap.cs.

◆ DataMap() [2/2]

Csla.Data.DataMap.DataMap ( Type  sourceType,
Type  targetType,
IEnumerable< string >  includedPropertyNames 
)

Initializes an instance of the type.

Parameters
sourceTypeType of source object.
targetTypeType of target object.
includedPropertyNamesList of property names to map 1:1.

Definition at line 66 of file DataMap.cs.

Member Function Documentation

◆ AddFieldMapping()

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

Adds a field to field mapping.

Parameters
sourceFieldName of source field.
targetFieldName of target field.

Definition at line 104 of file DataMap.cs.

◆ AddFieldToPropertyMapping()

void Csla.Data.DataMap.AddFieldToPropertyMapping ( string  sourceField,
string  targetProperty 
)

Adds a field to property mapping.

Parameters
sourceFieldName of source field.
targetPropertyName of target property.

Definition at line 121 of file DataMap.cs.

◆ AddPropertyMapping()

void Csla.Data.DataMap.AddPropertyMapping ( string  sourceProperty,
string  targetProperty 
)

Adds a property to property mapping.

Parameters
sourcePropertyName of source property.
targetPropertyName of target property.

Definition at line 87 of file DataMap.cs.

◆ AddPropertyToFieldMapping()

void Csla.Data.DataMap.AddPropertyToFieldMapping ( string  sourceProperty,
string  targetField 
)

Adds a property to field mapping.

Parameters
sourcePropertyName of source property.
targetFieldName of target field.

Definition at line 138 of file DataMap.cs.