| ObjectRepositoryTCollection, TObject, TSettings Class |
Namespace: CMS.DataEngine
public abstract class ObjectRepository<TCollection, TObject, TSettings> : INamedEnumerable<TCollection>, INamedEnumerable, IEnumerable<TCollection>, IEnumerable, IHierarchicalObject, INameIndexable where TCollection : AbstractObjectCollection, IEnumerable<TObject> where TSettings : BaseCollectionSettings
The ObjectRepositoryTCollection, TObject, TSettings type exposes the following members.
| Name | Description | |
|---|---|---|
| ObjectRepositoryTCollection, TObject, TSettings |
Constructor
|
| Name | Description | |
|---|---|---|
| Disconnect |
Disconnects the collections from the database
| |
| GetCollection |
Returns the collection of objects indexed by object type, e.g. "cms.user".
| |
| GetEnumerator |
Gets the enumerator for the collection.
| |
| GetNicePropertyName |
Gets the property name for the original name of the collection
| |
| GetObjectName |
Returns the name of the given object
| |
| GetProperty |
Gets the property value.
| |
| LoadCollection |
Loads the given collection.
| |
| NewCollection |
Creates new collection for the data.
| |
| NewCombinedCollection |
Creates new combined collection for the data.
| |
| Reconnect |
Reconnects the collection to the database
| |
| RegisterNiceName |
Registers the nice name of the collection
| |
| TryGetProperty |
Returns value of property.
|
| Name | Description | |
|---|---|---|
| AsValue |
Converts object to a query value which can be used as a query parameter
(Defined by QueryExtensions.) | |
| BatchTCollection |
Returns input in batches of batchSize size.
(Defined by BaseExtensions.) | |
| GetAPIString |
Gets the string by the specified resource key
(Defined by CoreExtensions.) | |
| GetNamedEnumeratorT |
Name enumerator over a collection
(Defined by DataExtensions.) | |
| GetString |
Gets the string by the specified resource key
(Defined by CoreExtensions.) | |
| ToBoolean |
Returns the boolean representation of an object or default value if not.
(Defined by CoreExtensions.) | |
| ToDateTime |
Returns the DateTime representation of an object or default value if not.
(Defined by CoreExtensions.) | |
| ToDouble |
Returns the double representation of an object or default value if not.
(Defined by CoreExtensions.) | |
| ToGuid |
Returns the Guid representation of an object or default value if not.
(Defined by CoreExtensions.) | |
| ToHashSetTCollection |
Converts the list of objects to a hash set of distinct values
(Defined by DataExtensions.) | |
| ToInteger |
Returns the integer representation of an object or default value if not.
(Defined by CoreExtensions.) | |
| ToJSON |
Returns JSON representation of current instance of IEnumerable.
(Defined by DataExtensions.) | |
| ToListTCollection, TTo |
Converts the given collection to a list of values
(Defined by BaseExtensions.) | |
| ToString |
Returns the string representation of an object or default value if not.
(Defined by CoreExtensions.) | |
| ToXML |
Returns XML representation of current instance of IEnumerable.
(Defined by DataExtensions.) |
| Name | Description | |
|---|---|---|
| mAll |
Collection of all underlying objects.
| |
| mCollections |
Table of collections [name -> CollectionType]
| |
| mCollectionSettings |
Table of collection settings [name -> InfoCollectionSettings]
| |
| mCollectionSettingsByIndex |
Table of collection settings by index [index -> InfoCollectionSettings]
| |
| mCollectionsList |
List of all collections (sorted by the order in which the collections were added).
| |
| mCount |
Number of the inner collections.
| |
| mDisconnectedCount |
Number of disconnected references for this collection
| |
| mDynamicNames |
List of dynamic names of the collections
| |
| mLoadBinaryData |
Indicates whether to load binary data into the collections of the repository.
| |
| mNiceNames |
Translation of collection nice names to a normal names [niceName -> name]
| |
| mProperties |
Properties of the object available through GetProperty.
|
| Name | Description | |
|---|---|---|
| All |
All items from all underlying collections.
| |
| AllowNiceNames |
If true, the repository allows nice names of the collections, e.g. for "CMS.User" uses "Users"
| |
| CollectionNames |
Returns list of collection names in the repository.
| |
| Count |
Returns the number of items.
| |
| DynamicNames |
List of the dynamic names of the collections
| |
| GetDynamicNames |
Function that provides the dynamic names of collections to the repository
| |
| IsCachedObject |
If true, the object is cached within the system for later use
| |
| IsDisconnected |
Returns true if this collection is disconnected from the database
| |
| ItemInt32 |
Returns the collection of objects.
| |
| ItemString |
Returns the collection of objects indexed by object type, e.g. "cms.user".
| |
| ItemsHaveNames |
Returns true if the items in the collection have names
| |
| LoadBinaryData |
Gets or sets the value which indicates whether to load binary data into the collections.
| |
| ParentStorage |
Parent storage
| |
| Properties |
Properties of the object available through GetProperty.
| |
| SortNames |
If true, the names in enumeration are sorted
|
| Name | Description | |
|---|---|---|
| OnLoadCollection |
Fires when the collection with specified name is requested.
|