Class MetaObjectActivator
Inheritance
Inherited Members
Namespace: Mediachase.BusinessFoundation.Data.Meta
Assembly: Mediachase.BusinessFoundation.Data.dll
Version: 12.17.2Syntax
public static class MetaObjectActivator
Methods
AddToCache(MetaObject, DateTime)
Adds to cache.
Declaration
public static MetaObject AddToCache(MetaObject metaObject, DateTime absoluteExpiration)
Parameters
Type | Name | Description |
---|---|---|
MetaObject | metaObject | The meta object. |
System.DateTime | absoluteExpiration | The absolute expiration. |
Returns
Type | Description |
---|---|
MetaObject |
CreateInstance(MetaClass)
Creates the instance.
Declaration
public static 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 static 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 static MetaObject CreateInstance(MetaClass metaClass, CustomTableRow row)
Parameters
Type | Name | Description |
---|---|---|
MetaClass | metaClass | The meta class. |
CustomTableRow | row | The row. |
Returns
Type | Description |
---|---|
MetaObject |
CreateInstance(String)
Creates the instance.
Declaration
public static MetaObject CreateInstance(string metaClassName)
Parameters
Type | Name | Description |
---|---|---|
System.String | metaClassName | Name of the meta class. |
Returns
Type | Description |
---|---|
MetaObject |
CreateInstance(String, PrimaryKeyId)
Creates the instance.
Declaration
public static MetaObject CreateInstance(string metaClassName, PrimaryKeyId primaryKeyId)
Parameters
Type | Name | Description |
---|---|---|
System.String | metaClassName | Name of the meta class. |
PrimaryKeyId | primaryKeyId | The primary key id. |
Returns
Type | Description |
---|---|
MetaObject |
CreateInstance(String, CustomTableRow)
Creates the instance.
Declaration
public static MetaObject CreateInstance(string metaClassName, CustomTableRow row)
Parameters
Type | Name | Description |
---|---|---|
System.String | metaClassName | Name of the meta class. |
CustomTableRow | row | The row. |
Returns
Type | Description |
---|---|
MetaObject |
CreateInstance<T>(MetaClass)
Creates the instance.
Declaration
public static T CreateInstance<T>(MetaClass metaClass)
where T : MetaObject
Parameters
Type | Name | Description |
---|---|---|
MetaClass | metaClass | The meta class. |
Returns
Type | Description |
---|---|
T |
Type Parameters
Name | Description |
---|---|
T |
CreateInstance<T>(MetaClass, PrimaryKeyId)
Creates the instance.
Declaration
public static T CreateInstance<T>(MetaClass metaClass, PrimaryKeyId primaryKeyId)
where T : MetaObject
Parameters
Type | Name | Description |
---|---|---|
MetaClass | metaClass | The meta class. |
PrimaryKeyId | primaryKeyId | The primary key id. |
Returns
Type | Description |
---|---|
T |
Type Parameters
Name | Description |
---|---|
T |
CreateInstance<T>(MetaClass, CustomTableRow)
Creates the instance.
Declaration
public static T CreateInstance<T>(MetaClass metaClass, CustomTableRow row)
where T : MetaObject
Parameters
Type | Name | Description |
---|---|---|
MetaClass | metaClass | The meta class. |
CustomTableRow | row | The row. |
Returns
Type | Description |
---|---|
T |
Type Parameters
Name | Description |
---|---|
T |
CreateInstance<T>(String)
Creates the instance.
Declaration
public static T CreateInstance<T>(string metaClassName)
where T : MetaObject
Parameters
Type | Name | Description |
---|---|---|
System.String | metaClassName | Name of the meta class. |
Returns
Type | Description |
---|---|
T |
Type Parameters
Name | Description |
---|---|
T |
CreateInstance<T>(String, PrimaryKeyId)
Creates the instance.
Declaration
public static T CreateInstance<T>(string metaClassName, PrimaryKeyId primaryKeyId)
where T : MetaObject
Parameters
Type | Name | Description |
---|---|---|
System.String | metaClassName | Name of the meta class. |
PrimaryKeyId | primaryKeyId | The primary key id. |
Returns
Type | Description |
---|---|
T |
Type Parameters
Name | Description |
---|---|
T |
CreateInstance<T>(String, CustomTableRow)
Creates the instance.
Declaration
public static T CreateInstance<T>(string metaClassName, CustomTableRow row)
where T : MetaObject
Parameters
Type | Name | Description |
---|---|---|
System.String | metaClassName | Name of the meta class. |
CustomTableRow | row | The row. |
Returns
Type | Description |
---|---|
T |
Type Parameters
Name | Description |
---|---|
T |
CreateInstances(BatchActivator)
Creates the multi meta object instances by BatchActivator.
Declaration
public static MetaObject[] CreateInstances(BatchActivator batch)
Parameters
Type | Name | Description |
---|---|---|
BatchActivator | batch | The batch. |
Returns
Type | Description |
---|---|
MetaObject[] |
CreateInstances(MetaClass, PrimaryKeyId[])
Creates the instances.
Declaration
public static MetaObject[] CreateInstances(MetaClass metaClass, params PrimaryKeyId[] primaryKeyIds)
Parameters
Type | Name | Description |
---|---|---|
MetaClass | metaClass | The meta class. |
PrimaryKeyId[] | primaryKeyIds | The primary key ids. |
Returns
Type | Description |
---|---|
MetaObject[] |
CreateInstances(String, PrimaryKeyId[])
Creates the instances.
Declaration
public static MetaObject[] CreateInstances(string metaClassName, params PrimaryKeyId[] primaryKeyIds)
Parameters
Type | Name | Description |
---|---|---|
System.String | metaClassName | Name of the meta class. |
PrimaryKeyId[] | primaryKeyIds | The primary key ids. |
Returns
Type | Description |
---|---|
MetaObject[] |
CreateInstances<T>(MetaClass, PrimaryKeyId[])
Creates the instances.
Declaration
public static T[] CreateInstances<T>(MetaClass metaClass, params PrimaryKeyId[] primaryKeyIds)
where T : MetaObject
Parameters
Type | Name | Description |
---|---|---|
MetaClass | metaClass | The meta class. |
PrimaryKeyId[] | primaryKeyIds | The primary key ids. |
Returns
Type | Description |
---|---|
T[] |
Type Parameters
Name | Description |
---|---|
T |
CreateInstances<T>(String, PrimaryKeyId[])
Creates the instances.
Declaration
public static T[] CreateInstances<T>(string metaClassName, params PrimaryKeyId[] primaryKeyIds)
where T : MetaObject
Parameters
Type | Name | Description |
---|---|---|
System.String | metaClassName | Name of the meta class. |
PrimaryKeyId[] | primaryKeyIds | The primary key ids. |
Returns
Type | Description |
---|---|
T[] |
Type Parameters
Name | Description |
---|---|
T |
InsertToCache(MetaObject)
Inserts to cache.
Declaration
public static void InsertToCache(MetaObject metaObject)
Parameters
Type | Name | Description |
---|---|---|
MetaObject | metaObject | The meta object. |
InsertToCache(MetaObject, DateTime)
Inserts to cache.
Declaration
public static void InsertToCache(MetaObject metaObject, DateTime absoluteExpiration)
Parameters
Type | Name | Description |
---|---|---|
MetaObject | metaObject | The meta object. |
System.DateTime | absoluteExpiration | The absolute expiration. |
RemoveFromCache(MetaObject)
Removes from cache.
Declaration
public static MetaObject RemoveFromCache(MetaObject metaObject)
Parameters
Type | Name | Description |
---|---|---|
MetaObject | metaObject | The meta object. |
Returns
Type | Description |
---|---|
MetaObject |