The ObjectRepository TCollection, TObject, TSettings type exposes the following members.
Back to Top
Back to Top
Back to Top
Back to Top
Back to Top
Back to Top
Constructors
| Name | Description | |
|---|---|---|
| ObjectRepository TCollection, TObject, TSettings |
Constructor
|
Methods
| Name | Description | |
|---|---|---|
| Disconnect |
Disconnects the collections from the database
| |
| (Inherited from | ||
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from | ||
| GetCollection |
Returns the collection of objects indexed by object type, e.g. "cms.user".
| |
| GetEnumerator |
Gets the enumerator for the collection.
| |
Serves as a hash function for a particular type. (Inherited from | ||
| 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.
| |
Gets the (Inherited from | ||
| LoadCollection |
Loads the given collection.
| |
Creates a shallow copy of the current (Inherited from | ||
| 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
| |
Returns a string that represents the current object. (Inherited from | ||
| TryGetProperty |
Returns value of property.
|
Extension Methods
| Name | Description | |
|---|---|---|
| GetAPIString |
Gets the string by the specified resource key
(Defined by CoreExtensions.) | |
| GetNamedEnumerator T |
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.) | |
| 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.) | |
| ToList TCollection, 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.) |
Fields
| 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.
|
Properties
| 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
| |
| Item Int32 |
Returns the collection of objects.
| |
| Item String |
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
|
Events
| Name | Description | |
|---|---|---|
| OnLoadCollection |
Fires when the collection with specified name is requested.
|
See Also