Class DefaultEntityObjectFactory
Represents default entity object factory.
Inheritance
System.Object
DefaultEntityObjectFactory
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.Business
Assembly: Mediachase.BusinessFoundation.Data.dll
Version: 12.17.2Syntax
public sealed class DefaultEntityObjectFactory : IEntityObjectFactory
Constructors
DefaultEntityObjectFactory()
Initializes a new instance of the DefaultEntityObjectFactory class.
Declaration
public DefaultEntityObjectFactory()
Properties
Instances
Gets or sets the instances.
Declaration
public Dictionary<string, Type> Instances { get; 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. |
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. |
ClearInstances()
Clears the instances.
Declaration
public void ClearInstances()
RemoveInstance(String)
Removes the instance.
Declaration
public void RemoveInstance(string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The name. |
Explicit Interface Implementations
IEntityObjectFactory.CanCreate(String)
Determines whether this instance can create the specified meta class names.
Declaration
bool IEntityObjectFactory.CanCreate(string metaClassNames)
Parameters
Type | Name | Description |
---|---|---|
System.String | metaClassNames | The meta class names. |
Returns
Type | Description |
---|---|
System.Boolean |
|
IEntityObjectFactory.CreateInstance(String)
Creates the instance.
Declaration
EntityObject IEntityObjectFactory.CreateInstance(string metaClassName)
Parameters
Type | Name | Description |
---|---|---|
System.String | metaClassName | Name of the meta class. |
Returns
Type | Description |
---|---|
EntityObject |