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
sourceDataIDataClassSource data
AbstractInfo(ObjectTypeInfo)
Constructor - Initializes the type dependent values.
protected AbstractInfo(ObjectTypeInfo typeInfo)
Parameters
typeInfoObjectTypeInfoType information
AbstractInfo(ObjectTypeInfo, IDataClass, bool)
Constructor - Initializes the object with source data.
protected AbstractInfo(ObjectTypeInfo typeInfo, IDataClass sourceData, bool keepSourceData)
Parameters
typeInfoObjectTypeInfoType information
sourceDataIDataClassSource data
keepSourceDataboolIf true, source data are kept
AbstractInfo(ObjectTypeInfo, bool)
Constructor - Initializes the type dependent values.
protected AbstractInfo(ObjectTypeInfo typeInfo, bool createData)
Parameters
typeInfoObjectTypeInfoType information
createDataboolIf true, data structure of the object is created
AbstractInfo(ObjectTypeInfo, DataRow)
Constructor - Initializes the type dependent values.
protected AbstractInfo(ObjectTypeInfo typeInfo, DataRow dr)
Parameters
typeInfoObjectTypeInfoType information
drDataRowDataRow 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
dcIDataContainerContainer with the source data
objectTypestringObject 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
settingsLoadDataSettingsData 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
initializerAction<TInfo>Optional initializer to set additional properties to the object
objectTypestringObject type
Returns
- TInfo
New(DataRow, string)
Creates new object of the given class
public static TInfo New(DataRow dr, string objectType = null)
Parameters
drDataRowData row with the data
objectTypestringObject 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
objectTypestringObject type
Returns
- TInfo
NewObject(LoadDataSettings)
Creates new object of the given class based on the given settings
protected override BaseInfo NewObject(LoadDataSettings settings)
Parameters
settingsLoadDataSettingsData settings