Class AbstractInfo<TInfo>
- Namespace
- CMS.DataEngine
- Assembly
- CMS.DataEngine.dll
Abstract object info class.
public abstract class AbstractInfo<TInfo> : AbstractInfoBase<TInfo>, IExtensible, IInfo, IAdvancedDataContainer, ICMSObject, IHierarchicalDataContainer, IDataContainer, ISimpleDataContainer, IVirtualHierarchicalObject, IHierarchicalObject, INameIndexable, IMacroObject where TInfo : AbstractInfo<TInfo>, new()
Type Parameters
TInfo
- Inheritance
-
objectAbstractInfoBase<TInfo>AbstractInfo<TInfo>
- Implements
- Derived
- Inherited Members
- Extension Methods
Constructors
AbstractInfo()
Constructor.
protected AbstractInfo()
AbstractInfo(IDataClass)
Constructor - Initializes the object with source data.
protected AbstractInfo(IDataClass sourceData)
Parameters
sourceData
IDataClassSource data
AbstractInfo(ObjectTypeInfo)
Constructor - Initializes the type dependent values.
protected AbstractInfo(ObjectTypeInfo typeInfo)
Parameters
typeInfo
ObjectTypeInfoType information
AbstractInfo(ObjectTypeInfo, IDataClass, bool)
Constructor - Initializes the object with source data.
protected AbstractInfo(ObjectTypeInfo typeInfo, IDataClass sourceData, bool keepSourceData)
Parameters
typeInfo
ObjectTypeInfoType information
sourceData
IDataClassSource data
keepSourceData
boolIf true, source data are kept
AbstractInfo(ObjectTypeInfo, bool)
Constructor - Initializes the type dependent values.
protected AbstractInfo(ObjectTypeInfo typeInfo, bool createData)
Parameters
typeInfo
ObjectTypeInfoType information
createData
boolIf true, data structure of the object is created
AbstractInfo(ObjectTypeInfo, DataRow)
Constructor - Initializes the type dependent values.
protected AbstractInfo(ObjectTypeInfo typeInfo, DataRow dr)
Parameters
typeInfo
ObjectTypeInfoType information
dr
DataRowDataRow with the source data
Methods
New(IDataContainer, string)
Creates new object of the given class
public static TInfo New(IDataContainer dc, string objectType = null)
Parameters
dc
IDataContainerContainer with the source data
objectType
stringObject type
Returns
- TInfo
New(LoadDataSettings)
Creates new object of the given class with the ability to specify more details about how the object should be initialized. Use other New methods for default loading of data.
public static TInfo New(LoadDataSettings settings)
Parameters
settings
LoadDataSettingsData settings
Returns
- TInfo
New(Action<TInfo>, string)
Creates new object of the given class
public static TInfo New(Action<TInfo> initializer = null, string objectType = null)
Parameters
initializer
Action<TInfo>Optional initializer to set additional properties to the object
objectType
stringObject type
Returns
- TInfo
New(DataRow, string)
Creates new object of the given class
public static TInfo New(DataRow dr, string objectType = null)
Parameters
dr
DataRowData row with the data
objectType
stringObject type
Returns
- TInfo
New(string)
Creates new object of the given class based on the given object type
public static TInfo New(string objectType)
Parameters
objectType
stringObject type
Returns
- TInfo
NewObject(LoadDataSettings)
Creates new object of the given class based on the given settings
protected override BaseInfo NewObject(LoadDataSettings settings)
Parameters
settings
LoadDataSettingsData settings