C# Class FdoToolbox.Core.ETL.Specialized.FdoClassCopyOptions

Defines the options for a FdoClassToClassCopyProcess instance
Show file Open project: jumpinjackie/fdotoolbox Class Usage Examples

Private Properties

Property Type Description
FromElement FdoClassCopyOptions
ToElement FdoToolbox.Core.Configuration.FdoCopyTaskElement

Public Methods

Method Description
AddDataConversionRule ( string name, FdoDataPropertyConversionRule rule ) : void

Adds a data conversion rule.

AddPropertyMapping ( string sourceProperty, string targetProperty ) : void

Adds a source to target property mapping.

AddSourceExpression ( string alias, string expression, string targetProp ) : void

Adds the source expression.

AddSourcePropertyToCheck ( string sourceProperty ) : void

Adds a source property to check if it needs to be created in the target class definition

FdoClassCopyOptions ( string sourceConnectionName, string targetConnectionName, string sourceSchema, string sourceClass, string targetSchema, string targetClass ) : System

Initializes a new instance of the FdoClassCopyOptions class.

GetDataConversionRule ( string name ) : FdoDataPropertyConversionRule

Gets the data conversion rule.

GetExpression ( string alias ) : string

Gets the expression.

GetTargetProperty ( string srcProp ) : string

Gets the target property.

GetTargetPropertyForAlias ( string alias ) : string

Gets the target property for alias.

Private Methods

Method Description
FromElement ( FdoCopyTaskElement el, FeatureSchemaCache cache, FdoConnection sourceConn, FdoConnection targetConn, TargetClassModificationItem &mod ) : FdoClassCopyOptions
ToElement ( ) : FdoCopyTaskElement

Method Details

AddDataConversionRule() public method

Adds a data conversion rule.
public AddDataConversionRule ( string name, FdoDataPropertyConversionRule rule ) : void
name string The name.
rule FdoDataPropertyConversionRule The rule.
return void

AddPropertyMapping() public method

Adds a source to target property mapping.
public AddPropertyMapping ( string sourceProperty, string targetProperty ) : void
sourceProperty string
targetProperty string
return void

AddSourceExpression() public method

Adds the source expression.
public AddSourceExpression ( string alias, string expression, string targetProp ) : void
alias string The alias.
expression string The expression.
targetProp string The target property.
return void

AddSourcePropertyToCheck() public method

Adds a source property to check if it needs to be created in the target class definition
public AddSourcePropertyToCheck ( string sourceProperty ) : void
sourceProperty string
return void

FdoClassCopyOptions() public method

Initializes a new instance of the FdoClassCopyOptions class.
public FdoClassCopyOptions ( string sourceConnectionName, string targetConnectionName, string sourceSchema, string sourceClass, string targetSchema, string targetClass ) : System
sourceConnectionName string Name of the source connection.
targetConnectionName string Name of the target connection.
sourceSchema string The source schema.
sourceClass string The source class.
targetSchema string The target schema.
targetClass string The target class.
return System

GetDataConversionRule() public method

Gets the data conversion rule.
public GetDataConversionRule ( string name ) : FdoDataPropertyConversionRule
name string The name.
return FdoDataPropertyConversionRule

GetExpression() public method

Gets the expression.
public GetExpression ( string alias ) : string
alias string The alias.
return string

GetTargetProperty() public method

Gets the target property.
public GetTargetProperty ( string srcProp ) : string
srcProp string The source prop.
return string

GetTargetPropertyForAlias() public method

Gets the target property for alias.
public GetTargetPropertyForAlias ( string alias ) : string
alias string The alias.
return string