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
-
objectAbstractInfoProvider<DataClassInfo, TProvider>DataClassInfoProviderBase<TProvider>
- Implements
- Derived
- Inherited Members
-
AbstractInfoProvider<DataClassInfo, TProvider, ObjectQuery<DataClassInfo>>.CreateInfo(DataRow, bool)AbstractInfoProvider<DataClassInfo, TProvider, ObjectQuery<DataClassInfo>>.GetInfoByGuid(Guid, bool)
- 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
DataClassInfoDataClassInfo to be deleted
DeleteDataClassInfo(int)
Deletes DataClassInfo with specified ID.
public static void DeleteDataClassInfo(int id)
Parameters
id
intDataClassInfo ID
DeleteObjectFromHashtables(DataClassInfo)
Deletes the object instance from the hashtables.
protected override void DeleteObjectFromHashtables(DataClassInfo info)
Parameters
info
DataClassInfoObject to delete
Exceptions
- ArgumentNullException
When info is null
GetClasses()
Returns a query for all the DataClassInfo objects.
public static ObjectQuery<DataClassInfo> GetClasses()
Returns
GetDataClassInfo(Guid)
Returns DataClassInfo with specified GUID.
public static DataClassInfo GetDataClassInfo(Guid guid)
Parameters
guid
GuidDataClassInfo GUID
Returns
GetDataClassInfo(int)
Returns DataClassInfo with specified ID.
public static DataClassInfo GetDataClassInfo(int id)
Parameters
id
intDataClassInfo ID
Returns
GetDataClassInfo(string)
Returns DataClassInfo with specified name.
public static DataClassInfo GetDataClassInfo(string name)
Parameters
name
stringDataClassInfo name
Returns
SetDataClassInfo(DataClassInfo)
Sets (updates or inserts) specified DataClassInfo.
public static void SetDataClassInfo(DataClassInfo infoObj)
Parameters
infoObj
DataClassInfoDataClassInfo to be set
SetInfo(DataClassInfo)
Inserts or Updates the object to the database.
protected override void SetInfo(DataClassInfo info)
Parameters
info
DataClassInfoObject 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
DataClassInfoObject 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
DataClassInfoObject to check
Returns
- bool