November Happy Hour will be moved to Thursday December 5th.

Class DefaultMetaObjectFactory

Represents default meta object factory. Realises IMetaObjectFactory interface.

Inheritance
System.Object
DefaultMetaObjectFactory
Implements
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.Meta
Assembly: Mediachase.BusinessFoundation.Data.dll
Version: 12.17.2
Syntax
public class DefaultMetaObjectFactory : IMetaObjectFactory

Constructors

DefaultMetaObjectFactory()

Initializes a new instance of the DefaultMetaObjectFactory class.

Declaration
public DefaultMetaObjectFactory()

Properties

Instances

Gets or sets the instances.

Declaration
public Dictionary<string, Type> Instances { get; protected set; }
Property Value
Type Description
System.Collections.Generic.Dictionary<System.String, System.Type>

The instances.

Methods

AddInstance(String, String)

Adds the instance.

Declaration
public void AddInstance(string name, string typeName)
Parameters
Type Name Description
System.String name

The name.

System.String typeName

The type name.

AddInstance(String, Type)

Adds the instance.

Declaration
public void AddInstance(string name, Type instanceType)
Parameters
Type Name Description
System.String name

The name.

System.Type instanceType

Type of the instance.

CanCreate(MetaClass)

Determines whether this instance can create the specified meta class.

Declaration
public bool CanCreate(MetaClass metaClass)
Parameters
Type Name Description
MetaClass metaClass

The meta class.

Returns
Type Description
System.Boolean

true if this instance can create the specified meta class; otherwise, false.

ClearInstances()

Clears the instances.

Declaration
public void ClearInstances()

CreateInstance(MetaClass)

Creates the instance.

Declaration
public MetaObject CreateInstance(MetaClass metaClass)
Parameters
Type Name Description
MetaClass metaClass

The meta class.

Returns
Type Description
MetaObject

CreateInstance(MetaClass, PrimaryKeyId)

Creates the instance.

Declaration
public MetaObject CreateInstance(MetaClass metaClass, PrimaryKeyId primaryKeyId)
Parameters
Type Name Description
MetaClass metaClass

The meta class.

PrimaryKeyId primaryKeyId

The primary key id.

Returns
Type Description
MetaObject

CreateInstance(MetaClass, CustomTableRow)

Creates the instance.

Declaration
public MetaObject CreateInstance(MetaClass metaClass, CustomTableRow row)
Parameters
Type Name Description
MetaClass metaClass

The meta class.

CustomTableRow row

The row.

Returns
Type Description
MetaObject

RemoveInstance(String)

Removes the instance.

Declaration
public void RemoveInstance(string name)
Parameters
Type Name Description
System.String name

The name.

Implements