Class InfoObjectRepository
- Namespace
- CMS.DataEngine
- Assembly
- CMS.DataEngine.dll
Repository for info objects.
public class InfoObjectRepository : InfoObjectRepository<IInfoObjectCollection<BaseInfo>, BaseInfo, InfoCollectionSettings>, IInfoObjectRepository<IInfoObjectCollection<BaseInfo>>, INamedEnumerable<IInfoObjectCollection<BaseInfo>>, INamedEnumerable, IHierarchicalObject, INameIndexable, ICMSStorage
- Inheritance
-
objectInfoObjectRepository
- Implements
- Derived
- Inherited Members
-
InfoObjectRepository<IInfoObjectCollection<BaseInfo>, BaseInfo, InfoCollectionSettings>.Disconnect()InfoObjectRepository<IInfoObjectCollection<BaseInfo>, BaseInfo, InfoCollectionSettings>.DynamicNames
- Extension Methods
Constructors
InfoObjectRepository()
Constructor.
public InfoObjectRepository()
InfoObjectRepository(ICMSStorage)
Constructor.
public InfoObjectRepository(ICMSStorage parentStorage)
Parameters
parentStorageICMSStorageParent storage object
InfoObjectRepository(BaseInfo)
Constructor.
public InfoObjectRepository(BaseInfo parentObject)
Parameters
parentObjectBaseInfoParent object
Properties
IsCachedObject
If true, the object is cached within the system for later use
public override bool IsCachedObject { get; set; }
Property Value
- bool
IsDisconnected
Returns true if the repository is disconnected from the data source
public override bool IsDisconnected { get; }
Property Value
- bool
ParentObject
Parent object.
public BaseInfo ParentObject { get; protected set; }
Property Value
Methods
AddCollection(string)
Registers the given collection of objects within the repository. Includes all the objects of given type.
public void AddCollection(string objectType)
Parameters
objectTypestringObject type
AddCollection<CollectionType>(InfoCollectionSettings)
Registers the given collection of objects within the repository.
public InfoCollectionSettings AddCollection<CollectionType>(InfoCollectionSettings settings) where CollectionType : IInfoObjectCollection
Parameters
settingsInfoCollectionSettingsCollection settings
Returns
Type Parameters
CollectionType
LoadCollection(InfoCollectionSettings)
Loads the given collection.
protected override IInfoObjectCollection<BaseInfo> LoadCollection(InfoCollectionSettings settings)
Parameters
settingsInfoCollectionSettingsCollection settings
Returns
NewCollection(string)
Creates new collection for the data.
public override IInfoObjectCollection<BaseInfo> NewCollection(string type)
Parameters
typestringObject type of the collection
Returns
NewCollectionInternal(string)
Creates a new collection
protected virtual InfoObjectCollection NewCollectionInternal(string type)
Parameters
typestringCollection type
Returns
NewCombinedCollection()
Creates new combined collection for the data.
public override CombinedInfoObjectCollection<IInfoObjectCollection<BaseInfo>, BaseInfo> NewCombinedCollection()