Class MetaFieldMap

Represents meta field global mapping. (Not implemented).

Inheritance
System.Object
MetaFieldMap
Inherited Members
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.Meta.Management
Assembly: Mediachase.BusinessFoundation.Data.dll
Version: 10.8.0
Syntax
public class MetaFieldMap
Remarks

The meta field map defines how to copy properties source meta class to destination meta class. Supports multi-references.

Constructors

MetaFieldMap()

Initializes a new instance of the MetaFieldMap class.

Declaration
public MetaFieldMap()

MetaFieldMap(String, MetaClass, MetaClass, MetaField[])

Initializes a new instance of the MetaFieldMap class.

Declaration
public MetaFieldMap(string name, MetaClass srcMetaClass, MetaClass destMetaClass, params MetaField[] references)
Parameters
Type Name Description
System.String name
MetaClass srcMetaClass
MetaClass destMetaClass
MetaField[] references

Properties

DestinationMetaClass

Gets or sets the destination meta class.

Declaration
public MetaClass DestinationMetaClass { get; set; }
Property Value
Type Description
MetaClass

The destination meta class.

Elements

Gets or sets the elements.

Declaration
public MetaFieldMapElementCollection Elements { get; set; }
Property Value
Type Description
MetaFieldMapElementCollection

The elements.

Name

Gets or sets the name.

Declaration
public string Name { get; set; }
Property Value
Type Description
System.String

The name.

References

Gets or sets the references.

Declaration
public Collection<MetaField> References { get; set; }
Property Value
Type Description
Collection<MetaField>

The references.

SourceMetaClass

Gets or sets the source meta class.

Declaration
public MetaClass SourceMetaClass { get; set; }
Property Value
Type Description
MetaClass

The source meta class.

Methods

CreateElement(MetaField, MetaField)

Creates the element.

Declaration
public MetaFieldMapElement CreateElement(MetaField srcMetaField, MetaField destMetaField)
Parameters
Type Name Description
MetaField srcMetaField

The SRC meta field.

MetaField destMetaField

The dest meta field.

Returns
Type Description
MetaFieldMapElement

CreateElement(String, String)

Creates the element.

Declaration
public MetaFieldMapElement CreateElement(string srcMetaFieldName, string destMetaFieldName)
Parameters
Type Name Description
System.String srcMetaFieldName

Name of the SRC meta field.

System.String destMetaFieldName

Name of the dest meta field.

Returns
Type Description
MetaFieldMapElement

DeleteElemet(MetaFieldMapElement)

Deletes the elemet.

Declaration
public void DeleteElemet(MetaFieldMapElement element)
Parameters
Type Name Description
MetaFieldMapElement element

The element.

DeleteElemet(Int32)

Deletes the elemet.

Declaration
public void DeleteElemet(int index)
Parameters
Type Name Description
System.Int32 index

The index.

FindAllAvailableReferences(MetaClass, MetaClass)

Finds all available references.

Declaration
public static List<MetaField[]> FindAllAvailableReferences(MetaClass srcMetaClass, MetaClass destMetaClass)
Parameters
Type Name Description
MetaClass srcMetaClass

The SRC meta class.

MetaClass destMetaClass

The dest meta class.

Returns
Type Description
System.Collections.Generic.List<MetaField[]>

FindAllAvailableReferences(String, String)

Finds all available references.

Declaration
public static List<MetaField[]> FindAllAvailableReferences(string srcMetaClassName, string destMetaClassName)
Parameters
Type Name Description
System.String srcMetaClassName

Name of the SRC meta class.

System.String destMetaClassName

Name of the dest meta class.

Returns
Type Description
System.Collections.Generic.List<MetaField[]>

ToString()

Returns a System.String that represents the current System.Object.

Declaration
public override string ToString()
Returns
Type Description
System.String

A System.String that represents the current System.Object.

Overrides
System.Object.ToString()