Click or drag to resize
ObjectRepositoryTCollection, TObject, TSettings Class
Repository for info objects.
Inheritance Hierarchy
SystemObject
  CMS.DataEngineObjectRepositoryTCollection, TObject, TSettings
    CMS.DataEngineInfoObjectRepository
    CMS.DocumentEngineDocumentRepository

Namespace: CMS.DataEngine
Assembly: CMS.DataEngine (in CMS.DataEngine.dll) Version: 8.2.23
Syntax
C#
public abstract class ObjectRepository<TCollection, TObject, TSettings> : INamedEnumerable<TCollection>, 
	INamedEnumerable, IEnumerable<TCollection>, IEnumerable, IHierarchicalObject, 
	INameIndexable
where TCollection : AbstractObjectCollection, IEnumerable<TObject>
where TSettings : BaseCollectionSettings

Type Parameters

TCollection
TObject
TSettings

The ObjectRepositoryTCollection, TObject, TSettings type exposes the following members.

Constructors
Methods
  NameDescription
Public methodDisconnect
Disconnects the collections from the database
Protected methodGetCollection
Returns the collection of objects indexed by object type, e.g. "cms.user".
Public methodGetEnumerator
Gets the enumerator for the collection.
Public methodGetNicePropertyName
Gets the property name for the original name of the collection
Public methodGetObjectName
Returns the name of the given object
Public methodGetProperty
Gets the property value.
Protected methodLoadCollection
Loads the given collection.
Public methodNewCollection
Creates new collection for the data.
Public methodNewCombinedCollection
Creates new combined collection for the data.
Public methodReconnect
Reconnects the collection to the database
Protected methodRegisterNiceName
Registers the nice name of the collection
Public methodTryGetProperty
Returns value of property.
Top
Extension Methods
  NameDescription
Public Extension MethodAsValue
Converts object to a query value which can be used as a query parameter
(Defined by QueryExtensions.)
Public Extension MethodBatchTCollection
Returns input in batches of batchSize size.
(Defined by BaseExtensions.)
Public Extension MethodGetAPIString
Gets the string by the specified resource key
(Defined by CoreExtensions.)
Public Extension MethodGetNamedEnumeratorT
Name enumerator over a collection
(Defined by DataExtensions.)
Public Extension MethodGetString
Gets the string by the specified resource key
(Defined by CoreExtensions.)
Public Extension MethodToBoolean
Returns the boolean representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToDateTime
Returns the DateTime representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToDouble
Returns the double representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToGuid
Returns the Guid representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToHashSetTCollection
Converts the list of objects to a hash set of distinct values
(Defined by DataExtensions.)
Public Extension MethodToInteger
Returns the integer representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToJSON
Returns JSON representation of current instance of IEnumerable.
(Defined by DataExtensions.)
Public Extension MethodToListTCollection, TTo
Converts the given collection to a list of values
(Defined by BaseExtensions.)
Public Extension MethodToString
Returns the string representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToXML
Returns XML representation of current instance of IEnumerable.
(Defined by DataExtensions.)
Top
Fields
  NameDescription
Protected fieldmAll
Collection of all underlying objects.
Protected fieldmCollections
Table of collections [name -> CollectionType]
Protected fieldmCollectionSettings
Table of collection settings [name -> InfoCollectionSettings]
Protected fieldmCollectionSettingsByIndex
Table of collection settings by index [index -> InfoCollectionSettings]
Protected fieldmCollectionsList
List of all collections (sorted by the order in which the collections were added).
Protected fieldmCount
Number of the inner collections.
Protected fieldmDisconnectedCount
Number of disconnected references for this collection
Protected fieldmDynamicNames
List of dynamic names of the collections
Protected fieldmLoadBinaryData
Indicates whether to load binary data into the collections of the repository.
Protected fieldmNiceNames
Translation of collection nice names to a normal names [niceName -> name]
Protected fieldmProperties
Properties of the object available through GetProperty.
Top
Properties
  NameDescription
Public propertyAll
All items from all underlying collections.
Public propertyAllowNiceNames
If true, the repository allows nice names of the collections, e.g. for "CMS.User" uses "Users"
Public propertyCollectionNames
Returns list of collection names in the repository.
Public propertyCount
Returns the number of items.
Public propertyDynamicNames
List of the dynamic names of the collections
Public propertyGetDynamicNames
Function that provides the dynamic names of collections to the repository
Public propertyIsCachedObject
If true, the object is cached within the system for later use
Public propertyIsDisconnected
Returns true if this collection is disconnected from the database
Public propertyItemInt32
Returns the collection of objects.
Public propertyItemString
Returns the collection of objects indexed by object type, e.g. "cms.user".
Public propertyItemsHaveNames
Returns true if the items in the collection have names
Public propertyLoadBinaryData
Gets or sets the value which indicates whether to load binary data into the collections.
Public propertyParentStorage
Parent storage
Public propertyProperties
Properties of the object available through GetProperty.
Public propertySortNames
If true, the names in enumeration are sorted
Top
Events
  NameDescription
Public eventOnLoadCollection
Fires when the collection with specified name is requested.
Top
See Also