Class MappingRule
Inheritance
Inherited Members
Namespace: Mediachase.BusinessFoundation.Data.Business.Mapping
Assembly: Mediachase.BusinessFoundation.Data.dll
Version: 13.30.0Syntax
public class MappingRule
Constructors
MappingRule()
Initializes a new instance of the MappingRule class.
Declaration
public MappingRule()
MappingRule(MappingRuleType, String, String, String, String)
Initializes a new instance of the MappingRule class.
Declaration
public MappingRule(MappingRuleType type, string columnName, string fieldName, string value, string relationTo)
Parameters
Type | Name | Description |
---|---|---|
MappingRuleType | type | The type. |
System.String | columnName | Name of the column. |
System.String | fieldName | Name of the field. |
System.String | value | The value. |
System.String | relationTo | The relation to. |
MappingRule(String, String)
Initializes a new instance of the MappingRule class.
Declaration
public MappingRule(string columnName, string fieldName)
Parameters
Type | Name | Description |
---|---|---|
System.String | columnName | Name of the column. |
System.String | fieldName | Name of the field. |
Properties
ColumnName
Gets or sets the name of the column.
Declaration
public string ColumnName { get; set; }
Property Value
Type | Description |
---|---|
System.String | The name of the column. |
DefaultValue
Gets or sets the default value.
Declaration
public string DefaultValue { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value. |
FieldName
Gets or sets the name of the field.
Declaration
public string FieldName { get; set; }
Property Value
Type | Description |
---|---|
System.String | The name of the field. |
RelationTo
Gets or sets the relation to.
Declaration
public string RelationTo { get; set; }
Property Value
Type | Description |
---|---|
System.String | The relation to. |
RuleType
Gets the type of the rule.
Declaration
public MappingRuleType RuleType { get; set; }
Property Value
Type | Description |
---|---|
MappingRuleType | The type of the rule. |
Methods
CreateCopyValue(String, String)
Creates the copy value.
Declaration
public static MappingRule CreateCopyValue(string columnName, string fieldName)
Parameters
Type | Name | Description |
---|---|---|
System.String | columnName | Name of the column. |
System.String | fieldName | Name of the field. |
Returns
Type | Description |
---|---|
MappingRule |
CreateDefaultValue(String, String)
Creates the default value.
Declaration
public static MappingRule CreateDefaultValue(string fieldName, string value)
Parameters
Type | Name | Description |
---|---|---|
System.String | fieldName | Name of the field. |
System.String | value | The value. |
Returns
Type | Description |
---|---|
MappingRule |
CreateReference(String, String, String)
Creates the reference.
Declaration
public static MappingRule CreateReference(string columnName, string fieldName, string relationTo)
Parameters
Type | Name | Description |
---|---|---|
System.String | columnName | Name of the column. |
System.String | fieldName | Name of the field. |
System.String | relationTo | The relation to. |
Returns
Type | Description |
---|---|
MappingRule |