The DocumentRepository 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 | |
---|---|---|
DocumentRepository |
Constructor.
| |
DocumentRepository(String) |
Constructor.
| |
DocumentRepository(TreeNode) |
Constructor.
|
Methods
Name | Description | |
---|---|---|
AddCollection |
Registers the given collection of objects within the repository.
| |
Disconnect |
Disconnects the collections from the database
(Inherited from ObjectRepository TCollection, TObject, TSettings .) | |
Equals | (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetCollection |
Returns the collection of objects indexed by object type, e.g. "cms.user".
(Inherited from ObjectRepository TCollection, TObject, TSettings .) | |
GetEnumerator |
Gets the enumerator for the collection.
(Inherited from ObjectRepository TCollection, TObject, TSettings .) | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetNicePropertyName |
Gets the property name for the original name of the collection
(Inherited from ObjectRepository TCollection, TObject, TSettings .) | |
GetObjectName |
Returns the name of the given object
(Inherited from ObjectRepository TCollection, TObject, TSettings .) | |
GetProperty |
Gets the property value.
(Inherited from ObjectRepository TCollection, TObject, TSettings .) | |
GetRootDocument |
Gets the root document from the database.
| |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
LoadCollection |
Loads the given collection.
(Overrides ObjectRepository TCollection, TObject, TSettings LoadCollection(TSettings).) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
NewCollection |
Creates new collection for the data.
(Overrides ObjectRepository TCollection, TObject, TSettings NewCollection(String).) | |
NewCombinedCollection |
Creates new combined collection for the data.
(Overrides ObjectRepository TCollection, TObject, TSettings NewCombinedCollection .) | |
Reconnect |
Reconnects the collection to the database
(Inherited from ObjectRepository TCollection, TObject, TSettings .) | |
RegisterNiceName |
Registers the nice name of the collection
(Inherited from ObjectRepository TCollection, TObject, TSettings .) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) | |
TryGetProperty |
Returns value of property.
(Inherited from ObjectRepository TCollection, TObject, TSettings .) |
Extension Methods
Name | Description | |
---|---|---|
GetAPIString |
Gets the string by the specified resource key
(Defined by CoreExtensions.) | |
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.) | |
ToString |
Returns the string representation of an object or default value if not.
(Defined by CoreExtensions.) |
Fields
Name | Description | |
---|---|---|
mAll |
Collection of all underlying objects.
(Inherited from ObjectRepository TCollection, TObject, TSettings .) | |
mCollections |
Table of collections [name -> CollectionType]
(Inherited from ObjectRepository TCollection, TObject, TSettings .) | |
mCollectionSettings |
Table of collection settings [name -> InfoCollectionSettings]
(Inherited from ObjectRepository TCollection, TObject, TSettings .) | |
mCollectionSettingsByIndex |
Table of collection settings by index [index -> InfoCollectionSettings]
(Inherited from ObjectRepository TCollection, TObject, TSettings .) | |
mCollectionsList |
List of all collections (sorted by the order in which the collections were added).
(Inherited from ObjectRepository TCollection, TObject, TSettings .) | |
mCount |
Number of the inner collections.
(Inherited from ObjectRepository TCollection, TObject, TSettings .) | |
mDisconnectedCount |
Number of disconnected references for this collection
(Inherited from ObjectRepository TCollection, TObject, TSettings .) | |
mDynamicNames |
List of dynamic names of the collections
(Inherited from ObjectRepository TCollection, TObject, TSettings .) | |
mIsLastVersion |
If true, the document is the last version (retrieved using DocumentHelper.GetDocument).
| |
mLoadBinaryData |
Indicates whether to load binary data into the collections of the repository.
(Inherited from ObjectRepository TCollection, TObject, TSettings .) | |
mNiceNames |
Translation of collection nice names to a normal names [niceName -> name]
(Inherited from ObjectRepository TCollection, TObject, TSettings .) | |
mProperties |
Properties of the object available through GetProperty.
(Inherited from ObjectRepository TCollection, TObject, TSettings .) | |
mRootDocument |
Root document.
| |
mSiteName |
Site name.
| |
mTreeProvider |
Tree provider object to use for the database access.
|
Properties
Name | Description | |
---|---|---|
All |
All items from all underlying collections.
(Inherited from ObjectRepository TCollection, TObject, TSettings .) | |
AllowNiceNames |
If true, the repository allows nice names of the collections, e.g. for "CMS.User" uses "Users"
(Inherited from ObjectRepository TCollection, TObject, TSettings .) | |
CollectionNames |
Returns list of collection names in the repository.
(Inherited from ObjectRepository TCollection, TObject, TSettings .) | |
Count |
Returns the number of items.
(Inherited from ObjectRepository TCollection, TObject, TSettings .) | |
DynamicNames |
List of the dynamic names of the collections
(Inherited from ObjectRepository TCollection, TObject, TSettings .) | |
GetDynamicNames |
Function that provides the dynamic names of collections to the repository
(Inherited from ObjectRepository TCollection, TObject, TSettings .) | |
IsCachedObject |
If true, the object is cached within the system for later use
(Inherited from ObjectRepository TCollection, TObject, TSettings .) | |
IsDisconnected |
Returns true if the repository is disconnected from the data source
(Overrides ObjectRepository TCollection, TObject, TSettings IsDisconnected.) | |
IsLastVersion |
If true, the document is the last version (retrieved using DocumentHelper.GetDocument).
| |
Item Int32 |
Returns the collection of objects.
(Inherited from ObjectRepository TCollection, TObject, TSettings .) | |
Item String |
Returns the collection of objects indexed by object type, e.g. "cms.user".
(Inherited from ObjectRepository TCollection, TObject, TSettings .) | |
ItemsHaveNames |
Returns true if the items in the collection have names
(Inherited from ObjectRepository TCollection, TObject, TSettings .) | |
LoadBinaryData |
Gets or sets the value which indicates whether to load binary data into the collections.
(Inherited from ObjectRepository TCollection, TObject, TSettings .) | |
ParentDocument |
Parent document.
| |
ParentStorage |
Parent storage
(Inherited from ObjectRepository TCollection, TObject, TSettings .) | |
Properties |
Properties of the object available through GetProperty.
(Inherited from ObjectRepository TCollection, TObject, TSettings .) | |
RootDocument |
Root document.
| |
SiteName |
Site name.
| |
SortNames |
If true, the names in enumeration are sorted
(Inherited from ObjectRepository TCollection, TObject, TSettings .) | |
TreeProvider |
Tree provider instance used to access data. If no TreeProvider is assigned, a new TreeProvider instance is created.
|
Events
Name | Description | |
---|---|---|
OnLoadCollection |
Fires when the collection with specified name is requested.
(Inherited from ObjectRepository TCollection, TObject, TSettings .) |
See Also