Property | Type | Description | |
---|---|---|---|
CreatePropertyTranslator | |||
EnsureDestinationInstance | bool |
Method | Description | |
---|---|---|
AddPropertyTranslation ( string sourceExpression, string destinationPath, string>.Func |
Adds a value PropertyTranslator to the current ModelTranslator
|
|
AddPropertyTranslation ( string sourceExpression, string destinationPath, |
Adds a value PropertyTranslator to the current ModelTranslator.
|
|
AddPropertyTranslation ( string sourceExpression, string destinationPath, |
Adds a value PropertyTranslator to the current ModelTranslator.
|
|
ModelTranslator ( ModelType sourceType, ModelType destinationType, |
Creates a new ModelTranslator to support translation from the specified source ModelType to the specified destination ModelType with a specified set of property translations.
|
|
Translate ( IEnumerable |
Translates the specified instances of the source type into the destination type.
|
|
Translate ( ModelInstance source ) : ModelInstance |
Translates the specified instance of the source type into the destination type.
|
Method | Description | |
---|---|---|
CreatePropertyTranslator ( string sourceExpression, string destinationPath ) : |
Initializes a PropertyTranslator
|
|
EnsureDestinationInstance ( ModelInstance instance, |
Ensure the destination instance path is valid when nulls are encountered along the path.
|
public AddPropertyTranslation ( string sourceExpression, string destinationPath, string>.Func | ||
sourceExpression | string | The source expression |
destinationPath | string | The destination path |
delegateConverter | string>.Func | The delegate to use to generate the translated value |
return | void |
public AddPropertyTranslation ( string sourceExpression, string destinationPath, |
||
sourceExpression | string | The source expression |
destinationPath | string | The destination path |
referenceConverter | ||
return | void |
public AddPropertyTranslation ( string sourceExpression, string destinationPath, |
||
sourceExpression | string | The source expression |
destinationPath | string | The destination path |
valueConverter | The optional value converter to use | |
return | void |
public ModelTranslator ( ModelType sourceType, ModelType destinationType, |
||
sourceType | ModelType | |
destinationType | ModelType | |
parent | ||
mappings | IEnumerable |
|
getValueConverter | TypeConverter>.Func | |
createDestinationInstance | ModelInstance>.Func | |
return | System |
public Translate ( IEnumerable |
||
sourceInstances | IEnumerable |
The list of objects created dynamically that will need to be translated. |
return | IEnumerable |
public Translate ( ModelInstance source ) : ModelInstance | ||
source | ModelInstance | |
return | ModelInstance |