Table of Contents

Class DataClassInfoProviderBase<TProvider>

Namespace
CMS.DataEngine
Assembly
CMS.DataEngine.dll

Class providing DataClassInfo management.

public abstract class DataClassInfoProviderBase<TProvider> : AbstractInfoProvider<DataClassInfo, TProvider>, IInfoProvider, ICustomizableProvider, IBulkOperationProvider, IWebFarmProvider, IInfoValidator<DataClassInfo>, IInfoProvider<DataClassInfo>, IInfoByIdProvider<DataClassInfo>, IInfoByGuidProvider<DataClassInfo>, IInfoByNameProvider<DataClassInfo>, IBulkInfoProvider<DataClassInfo> where TProvider : DataClassInfoProviderBase<TProvider>, new()

Type Parameters

TProvider
Inheritance
object
DataClassInfoProviderBase<TProvider>
Implements
Derived
Inherited Members
Extension Methods

Remarks

This provider is not managed by the IoC container.

Constructors

DataClassInfoProviderBase()

Constructor

protected DataClassInfoProviderBase()

Methods

DeleteDataClassInfo(DataClassInfo)

Deletes specified DataClassInfo.

public static void DeleteDataClassInfo(DataClassInfo infoObj)

Parameters

infoObj DataClassInfo

DataClassInfo to be deleted

DeleteDataClassInfo(int)

Deletes DataClassInfo with specified ID.

public static void DeleteDataClassInfo(int id)

Parameters

id int

DataClassInfo ID

DeleteObjectFromHashtables(DataClassInfo)

Deletes the object instance from the hashtables.

protected override void DeleteObjectFromHashtables(DataClassInfo info)

Parameters

info DataClassInfo

Object to delete

Exceptions

ArgumentNullException

When info is null

GetClasses()

Returns a query for all the DataClassInfo objects.

public static ObjectQuery<DataClassInfo> GetClasses()

Returns

ObjectQuery<DataClassInfo>

GetDataClassInfo(Guid)

Returns DataClassInfo with specified GUID.

public static DataClassInfo GetDataClassInfo(Guid guid)

Parameters

guid Guid

DataClassInfo GUID

Returns

DataClassInfo

GetDataClassInfo(int)

Returns DataClassInfo with specified ID.

public static DataClassInfo GetDataClassInfo(int id)

Parameters

id int

DataClassInfo ID

Returns

DataClassInfo

GetDataClassInfo(string)

Returns DataClassInfo with specified name.

public static DataClassInfo GetDataClassInfo(string name)

Parameters

name string

DataClassInfo name

Returns

DataClassInfo

SetDataClassInfo(DataClassInfo)

Sets (updates or inserts) specified DataClassInfo.

public static void SetDataClassInfo(DataClassInfo infoObj)

Parameters

infoObj DataClassInfo

DataClassInfo to be set

SetInfo(DataClassInfo)

Inserts or Updates the object to the database.

protected override void SetInfo(DataClassInfo info)

Parameters

info DataClassInfo

Object to insert / update

UpdateObjectInHashtables(DataClassInfo)

Updates the object instance in the hashtables. Updates is different than RegisterObjectInHashtables(TInfo), because it logs task about changing object.

protected override void UpdateObjectInHashtables(DataClassInfo info)

Parameters

info DataClassInfo

Object to update

ValidateCodeName(DataClassInfo)

Validates the object code name. Returns true if the code name is valid.

public override bool ValidateCodeName(DataClassInfo info)

Parameters

info DataClassInfo

Object to check

Returns

bool