Class MappingElementBuilder
Represents MappingDocument Builder.
Inheritance
System.Object
MappingElementBuilder
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Mediachase.BusinessFoundation.Data.Business.Mapping
Assembly: Mediachase.BusinessFoundation.Data.dll
Version: 12.17.2Syntax
public class MappingElementBuilder
Constructors
MappingElementBuilder(MappingDocument)
Initializes a new instance of the MappingElementBuilder class.
Declaration
public MappingElementBuilder(MappingDocument mappingDocument)
Parameters
| Type | Name | Description |
|---|---|---|
| MappingDocument | mappingDocument | The mapping document. |
Properties
MappingDocument
Gets or sets the mapping document.
Declaration
public MappingDocument MappingDocument { get; protected set; }
Property Value
| Type | Description |
|---|---|
| MappingDocument | The mapping document. |
Methods
AssignCopyValueRule(String, String)
Assigns the copy value rule.
Declaration
public MappingRule AssignCopyValueRule(string sourceColumnName, string targetMetaFieldName)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | sourceColumnName | Name of the source column. |
| System.String | targetMetaFieldName | Name of the target meta field. |
Returns
| Type | Description |
|---|---|
| MappingRule |
AssignDefaultValueRule(String, String)
Assigns the default value rule.
Declaration
public MappingRule AssignDefaultValueRule(string metaFieldName, string defaultValue)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | metaFieldName | Name of the meta field. |
| System.String | defaultValue | The default value. |
Returns
| Type | Description |
|---|---|
| MappingRule |
GetMappingElement()
Gets the mapping element.
Declaration
protected virtual MappingElement GetMappingElement()
Returns
| Type | Description |
|---|---|
| MappingElement |
GetRuleByColumn(String)
Gets the name of the mapping element by column.
Declaration
public MappingRule GetRuleByColumn(string sourceColumnName)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | sourceColumnName | Name of the source column. |
Returns
| Type | Description |
|---|---|
| MappingRule |
GetRuleByMetaField(String)
Gets the mapping element by meta field.
Declaration
public MappingRule GetRuleByMetaField(string metaFieldName)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | metaFieldName | Name of the meta field. |
Returns
| Type | Description |
|---|---|
| MappingRule |
RemoveRuleByColumn(String)
Removes the rule by column.
Declaration
public void RemoveRuleByColumn(string columnName)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | columnName | Name of the column. |
RemoveRuleByMetaField(String)
Removes the rule by meta field.
Declaration
public void RemoveRuleByMetaField(string metaFieldName)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | metaFieldName | Name of the meta field. |