Class Rule

Summary description for Rule.

Inheritance
System.Object
Rule
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.MetaDataPlus.Import
Assembly: Mediachase.MetaDataPlus.dll
Version: 10.8.0
Syntax
public class Rule

Constructors

Rule(MetaClass)

Declaration
public Rule(MetaClass metaClass)
Parameters
Type Name Description
MetaClass metaClass

Rule(MetaDataContext)

Declaration
public Rule(MetaDataContext context)
Parameters
Type Name Description
MetaDataContext context

Rule(MetaDataContext, String)

Declaration
public Rule(MetaDataContext context, string ClassName)
Parameters
Type Name Description
MetaDataContext context
System.String ClassName

Properties

Attribute

Declaration
public RuleAttributeCollection Attribute { get; }
Property Value
Type Description
RuleAttributeCollection

ClassName

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

Context

Declaration
public MetaDataContext Context { get; }
Property Value
Type Description
MetaDataContext

Count

Declaration
public int Count { get; }
Property Value
Type Description
System.Int32

Item[Int32]

Declaration
public RuleItem this[int index] { get; }
Parameters
Type Name Description
System.Int32 index
Property Value
Type Description
RuleItem

Item[String]

Declaration
public RuleItem this[string DestColumnName] { get; }
Parameters
Type Name Description
System.String DestColumnName
Property Value
Type Description
RuleItem

Methods

Add(RuleItem)

Declaration
public void Add(RuleItem Item)
Parameters
Type Name Description
RuleItem Item

Delete()

Declaration
public void Delete()

Delete(MetaDataContext, Int32)

Declaration
public static void Delete(MetaDataContext context, int ruleId)
Parameters
Type Name Description
MetaDataContext context
System.Int32 ruleId

Deserialize(Byte[])

Declaration
public static Rule Deserialize(byte[] data)
Parameters
Type Name Description
System.Byte[] data
Returns
Type Description
Rule

GetBySrcColumnName(String)

Declaration
public RuleItem GetBySrcColumnName(string SrcColumnName)
Parameters
Type Name Description
System.String SrcColumnName
Returns
Type Description
RuleItem

GetList(MetaDataContext, MetaClass)

Declaration
public static Rule[] GetList(MetaDataContext context, MetaClass metaClass)
Parameters
Type Name Description
MetaDataContext context
MetaClass metaClass
Returns
Type Description
Rule[]

GetList(MetaDataContext, Int32)

Declaration
public static Rule[] GetList(MetaDataContext context, int metaClassId)
Parameters
Type Name Description
MetaDataContext context
System.Int32 metaClassId
Returns
Type Description
Rule[]

GetList(MetaDataContext, String)

Declaration
public static Rule[] GetList(MetaDataContext context, string metaClassName)
Parameters
Type Name Description
MetaDataContext context
System.String metaClassName
Returns
Type Description
Rule[]

Load(MetaDataContext, Int32)

Declaration
public static Rule Load(MetaDataContext context, int ruleId)
Parameters
Type Name Description
MetaDataContext context
System.Int32 ruleId
Returns
Type Description
Rule

RemoveAt(Int32)

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

Save()

Declaration
public void Save()

Save(MetaDataContext, Rule)

Declaration
public static void Save(MetaDataContext context, Rule rule)
Parameters
Type Name Description
MetaDataContext context
Rule rule

Serialize(Rule)

Declaration
public static byte[] Serialize(Rule rule)
Parameters
Type Name Description
Rule rule
Returns
Type Description
System.Byte[]

XmlDeserialize(MetaDataContext, String)

Declaration
public static Rule XmlDeserialize(MetaDataContext context, string fileName)
Parameters
Type Name Description
MetaDataContext context
System.String fileName
Returns
Type Description
Rule

XmlSerialize(Rule, String)

Declaration
public static void XmlSerialize(Rule rule, string fileName)
Parameters
Type Name Description
Rule rule
System.String fileName