Class DefaultEntityObjectFactory
Represents default entity object factory.
Inheritance
System.Object
DefaultEntityObjectFactory
Implements
Namespace: Mediachase.BusinessFoundation.Data.Business
Assembly: Mediachase.BusinessFoundation.Data.dll
Version: 14.26.0Syntax
public sealed class DefaultEntityObjectFactory : Object, IEntityObjectFactory
Constructors
DefaultEntityObjectFactory()
Initializes a new instance of the Default
Declaration
public DefaultEntityObjectFactory()
Properties
Instances
Gets or sets the instances.
Declaration
public Dictionary<string, Type> Instances { get; set; }
Property Value
Type | Description |
---|---|
System. |
The instances. |
Methods
AddInstance(String, String)
Adds the instance.
Declaration
public void AddInstance(string name, string typeName)
Parameters
Type | Name | Description |
---|---|---|
System. |
name | The name. |
System. |
typeName | The type. |
AddInstance(String, Type)
Adds the instance.
Declaration
public void AddInstance(string name, Type instanceType)
Parameters
Type | Name | Description |
---|---|---|
System. |
name | The name. |
System. |
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. |
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. |
metaClassNames | The meta class names. |
Returns
Type | Description |
---|---|
System. |
|
IEntityObjectFactory.CreateInstance(String)
Creates the instance.
Declaration
EntityObject IEntityObjectFactory.CreateInstance(string metaClassName)
Parameters
Type | Name | Description |
---|---|---|
System. |
metaClassName | Name of the meta class. |
Returns
Type | Description |
---|---|
Entity |