Class DataClassFactory
- Namespace
- CMS.DataEngine
- Assembly
- CMS.DataEngine.dll
DataClass factory.
public static class DataClassFactory
- Inheritance
-
objectDataClassFactory
Methods
ChangeDefaultDataClassTypeTo<ClassType>()
Changes the default data class type to specific class
[Obsolete("Method was not intended for public use and will be removed.")]
[ObsoleteSince(29, 2)]
public static void ChangeDefaultDataClassTypeTo<ClassType>() where ClassType : IDataClass, new()
Type Parameters
ClassType
NewDataClass(ClassStructureInfo)
Creates new DataClass of the given type
public static IDataClass NewDataClass(ClassStructureInfo structureInfo)
Parameters
structureInfo
ClassStructureInfoClass structure info
Returns
NewDataClass(string)
Creates new DataClass of the given type
public static IDataClass NewDataClass(string className)
Parameters
className
stringClass name
Returns
NewDataClass(string, IDataContainer)
Constructor. Gets a class name and data row. Use it to load an existing item.
[Obsolete("Method was not intended for public use and will be removed.")]
[ObsoleteSince(29, 2)]
public static IDataClass NewDataClass(string className, IDataContainer data)
Parameters
className
stringClass name in format application.class
data
IDataContainerData row representing the current item
Returns
NewDataClass(string, DataRow)
Constructor. Gets a class name and data row. Use it to load an existing item.
[Obsolete("Method was not intended for public use and will be removed.")]
[ObsoleteSince(29, 2)]
public static IDataClass NewDataClass(string className, DataRow dataRow)
Parameters
className
stringClass name in format application.class
dataRow
DataRowData row representing the current item
Returns
NewDataClass(string, int)
Constructor. Gets a class name and parameters for selecting the item. Use it to load an existing item.
[Obsolete("Method was not intended for public use and will be removed.")]
[ObsoleteSince(29, 2)]
public static IDataClass NewDataClass(string className, int primaryKeyValue)
Parameters
className
stringClass name in format application.class
primaryKeyValue
intPrimary key value