Table of Contents

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
object
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 IDataClass

Source data

AbstractInfo(ObjectTypeInfo)

Constructor - Initializes the type dependent values.

protected AbstractInfo(ObjectTypeInfo typeInfo)

Parameters

typeInfo ObjectTypeInfo

Type information

AbstractInfo(ObjectTypeInfo, IDataClass, bool)

Constructor - Initializes the object with source data.

protected AbstractInfo(ObjectTypeInfo typeInfo, IDataClass sourceData, bool keepSourceData)

Parameters

typeInfo ObjectTypeInfo

Type information

sourceData IDataClass

Source data

keepSourceData bool

If true, source data are kept

AbstractInfo(ObjectTypeInfo, bool)

Constructor - Initializes the type dependent values.

protected AbstractInfo(ObjectTypeInfo typeInfo, bool createData)

Parameters

typeInfo ObjectTypeInfo

Type information

createData bool

If 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 ObjectTypeInfo

Type information

dr DataRow

DataRow 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 IDataContainer

Container with the source data

objectType string

Object 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 LoadDataSettings

Data 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 string

Object type

Returns

TInfo

New(DataRow, string)

Creates new object of the given class

public static TInfo New(DataRow dr, string objectType = null)

Parameters

dr DataRow

Data row with the data

objectType string

Object 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 string

Object 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 LoadDataSettings

Data settings

Returns

BaseInfo