![]() |
Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
|
Static interface for database persistence. In order to work, a database provider has to be assigned to it. This is ideally done as one of the first steps in the startup of an application. More...
Static Public Member Functions | |
static void | Register (IDatabaseProvider DatabaseProvider) |
Registers a database provider for use from the static Database class, throughout the lifetime of the application. More... | |
static void | Register (IDatabaseProvider DatabaseProvider, bool Lock) |
Registers a database provider for use from the static Database class, throughout the lifetime of the application. More... | |
static async Task | Insert (object Object) |
Inserts an object into the default collection of the database. More... | |
static async Task | Insert (params object[] Objects) |
Inserts a set of objects into the default collection of the database. More... | |
static async Task | Insert (IEnumerable< object > Objects) |
Inserts a set of objects into the default collection of the database. More... | |
static async Task | InsertLazy (object Object) |
Inserts an object into the database, if unlocked. If locked, object will be inserted at next opportunity. More... | |
static async Task | InsertLazy (params object[] Objects) |
Inserts an object into the database, if unlocked. If locked, object will be inserted at next opportunity. More... | |
static async Task | InsertLazy (IEnumerable< object > Objects) |
Inserts an object into the database, if unlocked. If locked, object will be inserted at next opportunity. More... | |
static Task< IEnumerable< T > > | Find< T > (params string[] SortOrder) |
Finds objects of a given class T . More... | |
static Task< IEnumerable< T > > | Find< T > (Filter Filter, params string[] SortOrder) |
Finds objects of a given class T . More... | |
static Task< IEnumerable< T > > | Find< T > (int Offset, int MaxCount, params string[] SortOrder) |
Finds objects of a given class T . More... | |
static Task< IEnumerable< T > > | Find< T > (int Offset, int MaxCount, Filter Filter, params string[] SortOrder) |
Finds objects of a given class T . More... | |
static Task< IEnumerable< object > > | Find (string Collection, params string[] SortOrder) |
Finds objects in a given collection. More... | |
static Task< IEnumerable< object > > | Find (string Collection, Filter Filter, params string[] SortOrder) |
Finds objects in a given collection. More... | |
static Task< IEnumerable< object > > | Find (string Collection, int Offset, int MaxCount, params string[] SortOrder) |
Finds objects in a given collection. More... | |
static Task< IEnumerable< object > > | Find (string Collection, int Offset, int MaxCount, Filter Filter, params string[] SortOrder) |
Finds objects in a given collection. More... | |
static Task< IEnumerable< T > > | Find< T > (string Collection, string[] SortOrder) |
Finds objects in a given collection. More... | |
static Task< IEnumerable< T > > | Find< T > (string Collection, Filter Filter, params string[] SortOrder) |
Finds objects in a given collection. More... | |
static Task< IEnumerable< T > > | Find< T > (string Collection, int Offset, int MaxCount, params string[] SortOrder) |
Finds objects in a given collection. More... | |
static Task< IEnumerable< T > > | Find< T > (string Collection, int Offset, int MaxCount, Filter Filter, params string[] SortOrder) |
Finds objects in a given collection. More... | |
static Task< IPage< T > > | FindFirst< T > (int PageSize, params string[] SortOrder) |
Finds the first page of objects of a given class T . More... | |
static Task< IPage< T > > | FindFirst< T > (int PageSize, Filter Filter, params string[] SortOrder) |
Finds the first page of objects of a given class T . More... | |
static Task< IPage< object > > | FindFirst (string Collection, int PageSize, params string[] SortOrder) |
Finds the first page of objects in a given collection. More... | |
static Task< IPage< object > > | FindFirst (string Collection, int PageSize, Filter Filter, params string[] SortOrder) |
Finds the first page of objects in a given collection. More... | |
static Task< IPage< T > > | FindFirst< T > (string Collection, int PageSize, Filter Filter, params string[] SortOrder) |
Finds the first page of objects in a given collection. More... | |
static Task< IPage< T > > | FindNext< T > (IPage< T > Page) |
Finds the next page of objects of a given class T . More... | |
static Task< IPage< object > > | FindNext (IPage< object > Page) |
Finds the next page of objects in a given collection. More... | |
static async Task< PaginatedEnumerator< T > > | Enumerate< T > (int PageSize, params string[] SortOrder) |
Enumerates objects of a given class T available in the database, by retrieving items from the database in page chunks and looping through them page for page. More... | |
static async Task< PaginatedEnumerator< T > > | Enumerate< T > (int PageSize, Filter Filter, params string[] SortOrder) |
Finds the first page of objects of a given class T . More... | |
static async Task< PaginatedEnumerator< object > > | Enumerate (string Collection, int PageSize, params string[] SortOrder) |
Finds the first page of objects in a given collection. More... | |
static async Task< PaginatedEnumerator< object > > | Enumerate (string Collection, int PageSize, Filter Filter, params string[] SortOrder) |
Finds the first page of objects in a given collection. More... | |
static async Task< PaginatedEnumerator< T > > | Enumerate< T > (string Collection, int PageSize, Filter Filter, params string[] SortOrder) |
Finds the first page of objects in a given collection. More... | |
static async Task< T > | FindFirstDeleteRest< T > (params string[] SortOrder) |
Finds the first object of a given class T and deletes the rest. More... | |
static async Task< T > | FindFirstDeleteRest< T > (Filter Filter, params string[] SortOrder) |
Finds the first object of a given class T and deletes the rest. More... | |
static async Task< T > | FindFirstIgnoreRest< T > (params string[] SortOrder) |
Finds the first object of a given class T and ignores the rest. More... | |
static async Task< T > | FindFirstIgnoreRest< T > (Filter Filter, params string[] SortOrder) |
Finds the first object of a given class T and ignores the rest. More... | |
static async Task | Update (object Object) |
Updates an object in the database. More... | |
static async Task | Update (params object[] Objects) |
Updates a collection of objects in the database. More... | |
static async Task | Update (IEnumerable< object > Objects) |
Updates a collection of objects in the database. More... | |
static async Task | UpdateLazy (object Object) |
Updates an object in the database, if unlocked. If locked, object will be updated at next opportunity. More... | |
static async Task | UpdateLazy (params object[] Objects) |
Updates a collection of objects in the database, if unlocked. If locked, objects will be updated at next opportunity. More... | |
static async Task | UpdateLazy (IEnumerable< object > Objects) |
Updates a collection of objects in the database, if unlocked. If locked, objects will be updated at next opportunity. More... | |
static async Task | Delete (object Object) |
Deletes an object in the database. More... | |
static async Task | Delete (params object[] Objects) |
Deletes a collection of objects in the database. More... | |
static async Task | Delete (IEnumerable< object > Objects) |
Deletes a collection of objects in the database. More... | |
static async Task | DeleteLazy (object Object) |
Deletes an object in the database, if unlocked. If locked, object will be deleted at next opportunity. More... | |
static async Task | DeleteLazy (params object[] Objects) |
Deletes a collection of objects in the database, if unlocked. If locked, objects will be deleted at next opportunity. More... | |
static async Task | DeleteLazy (IEnumerable< object > Objects) |
Deletes a collection of objects in the database, if unlocked. If locked, objects will be deleted at next opportunity. More... | |
static Task< IEnumerable< T > > | FindDelete< T > (params string[] SortOrder) |
Finds objects of a given class T and deletes them in the same atomic operation. More... | |
static async Task< IEnumerable< T > > | FindDelete< T > (int Offset, int MaxCount, params string[] SortOrder) |
Finds objects of a given class T and deletes them in the same atomic operation. More... | |
static Task< IEnumerable< T > > | FindDelete< T > (Filter Filter, params string[] SortOrder) |
Finds objects of a given class T and deletes them in the same atomic operation. More... | |
static async Task< IEnumerable< T > > | FindDelete< T > (int Offset, int MaxCount, Filter Filter, params string[] SortOrder) |
Finds objects of a given class T and deletes them in the same atomic operation. More... | |
static Task< IEnumerable< object > > | FindDelete (string Collection, params string[] SortOrder) |
Finds objects in a given collection and deletes them in the same atomic operation. More... | |
static async Task< IEnumerable< object > > | FindDelete (string Collection, int Offset, int MaxCount, params string[] SortOrder) |
Finds objects in a given collection and deletes them in the same atomic operation. More... | |
static Task< IEnumerable< object > > | FindDelete (string Collection, Filter Filter, params string[] SortOrder) |
Finds objects in a given collection and deletes them in the same atomic operation. More... | |
static async Task< IEnumerable< object > > | FindDelete (string Collection, int Offset, int MaxCount, Filter Filter, params string[] SortOrder) |
Finds objects in a given collection and deletes them in the same atomic operation. More... | |
static Task | DeleteLazy< T > (params string[] SortOrder) |
Finds objects of a given class T and deletes them in the same atomic operation. More... | |
static Task | DeleteLazy< T > (int Offset, int MaxCount, params string[] SortOrder) |
Finds objects of a given class T and deletes them in the same atomic operation. More... | |
static Task | DeleteLazy< T > (Filter Filter, params string[] SortOrder) |
Finds objects of a given class T and deletes them in the same atomic operation. More... | |
static Task | DeleteLazy< T > (int Offset, int MaxCount, Filter Filter, params string[] SortOrder) |
Finds objects of a given class T and deletes them in the same atomic operation. More... | |
static Task | DeleteLazy (string Collection, params string[] SortOrder) |
Finds objects in a given collection and deletes them in the same atomic operation. More... | |
static Task | DeleteLazy (string Collection, int Offset, int MaxCount, params string[] SortOrder) |
Finds objects in a given collection and deletes them in the same atomic operation. More... | |
static Task | DeleteLazy (string Collection, Filter Filter, params string[] SortOrder) |
Finds objects in a given collection and deletes them in the same atomic operation. More... | |
static Task | DeleteLazy (string Collection, int Offset, int MaxCount, Filter Filter, params string[] SortOrder) |
Finds objects in a given collection and deletes them in the same atomic operation. More... | |
static Task< T > | TryLoadObject< T > (object ObjectId) |
Tries to load an object given its Object ID ObjectId and its class type T . More... | |
static Task< T > | TryLoadObject< T > (string CollectionName, object ObjectId) |
Tries to load an object given its Object ID ObjectId and its class type T . More... | |
static Task< object > | TryLoadObject (string CollectionName, object ObjectId) |
Tries to load an object given its Object ID ObjectId and its collection name CollectionName . More... | |
static async Task< T > | LoadObject< T > (object ObjectId) |
Loads an object given its Object ID ObjectId and its base type T . More... | |
static async Task< T > | LoadObject< T > (string CollectionName, object ObjectId) |
Loads an object given its Object ID ObjectId and its collection name CollectionName . More... | |
static async Task< object > | LoadObject (string CollectionName, object ObjectId) |
Loads an object given its Object ID ObjectId and its collection name CollectionName . More... | |
static Task< bool > | Export (IDatabaseExport Output) |
Performs an export of the database. More... | |
static Task< bool > | Export (IDatabaseExport Output, string[] CollectionNames) |
Performs an export of the database. More... | |
static Task< bool > | Export (IDatabaseExport Output, string[] CollectionNames, ProfilerThread Thread) |
Performs an export of the database. More... | |
static Task | Iterate< T > (IDatabaseIteration< T > Recipient) |
Performs an iteration of contents of the entire database. More... | |
static Task | Iterate< T > (IDatabaseIteration< T > Recipient, string[] CollectionNames) |
Performs an iteration of contents of the entire database. More... | |
static Task | Iterate< T > (IDatabaseIteration< T > Recipient, string[] CollectionNames, ProfilerThread Thread) |
Performs an iteration of contents of the entire database. More... | |
static async Task | Clear (string CollectionName) |
Clears a collection of all objects. More... | |
static Task< string[]> | Analyze (XmlWriter Output, string XsltPath, string ProgramDataFolder, bool ExportData) |
Analyzes the database and exports findings to XML. More... | |
static Task< string[]> | Analyze (XmlWriter Output, string XsltPath, string ProgramDataFolder, bool ExportData, ProfilerThread Thread) |
Analyzes the database and exports findings to XML. More... | |
static Task< string[]> | Repair (XmlWriter Output, string XsltPath, string ProgramDataFolder, bool ExportData) |
Analyzes the database and repairs it if necessary. Results are exported to XML. More... | |
static async Task< string[]> | Repair (XmlWriter Output, string XsltPath, string ProgramDataFolder, bool ExportData, ProfilerThread Thread) |
Analyzes the database and repairs it if necessary. Results are exported to XML. More... | |
static Task< string[]> | Analyze (XmlWriter Output, string XsltPath, string ProgramDataFolder, bool ExportData, bool Repair) |
Analyzes the database and exports findings to XML. More... | |
static async Task< string[]> | Analyze (XmlWriter Output, string XsltPath, string ProgramDataFolder, bool ExportData, bool Repair, ProfilerThread Thread) |
Analyzes the database and exports findings to XML. More... | |
static string[] | GetFlaggedCollectionNames () |
Gets the names of the collections that have been flagged as possibly corrupt. More... | |
static void | BeginRepair (string Collection) |
Is called when reparation of a collection is begin. More... | |
static void | EndRepair (string Collection) |
Is called when reparation of a collection is ended. More... | |
static Exception | FlagForRepair (string Collection, string Reason) |
Flags a collection for repairing. More... | |
static Task | AddIndex (string CollectionName, string[] FieldNames) |
Adds an index to a collection, if one does not already exist. More... | |
static Task | RemoveIndex (string CollectionName, string[] FieldNames) |
Removes an index from a collection, if one exist. More... | |
static Task | StartBulk () |
Starts bulk-proccessing of data. Must be followed by a call to EndBulk. More... | |
static Task | EndBulk () |
Ends bulk-processing of data. Must be called once for every call to StartBulk. More... | |
static string[] | ToStringArray (this CaseInsensitiveString[] A) |
Converts a case insensitive string array to a normal string array. More... | |
static CaseInsensitiveString[] | ToCaseInsensitiveStringArray (this string[] A) |
Converts a case insensitive string array to a normal string array. More... | |
static Task< IPersistentDictionary > | GetDictionary (string Collection) |
Gets a persistent dictionary containing objects in a collection. More... | |
static Task< string[]> | GetDictionaries () |
Gets an array of available dictionary collections. More... | |
static Task< string[]> | GetCollections () |
Gets an array of available collections. More... | |
static Task< string > | GetCollection (Type Type) |
Gets the collection corresponding to a given type. More... | |
static Task< string > | GetCollection (Object Object) |
Gets the collection corresponding to a given object. More... | |
static Task< bool > | IsLabel (string Collection, string Label) |
Checks if a string is a label in a given collection. More... | |
static Task< string[]> | GetLabels (string Collection) |
Gets an array of available labels for a collection. More... | |
static Task< object > | TryGetObjectId (object Object) |
Tries to get the Object ID of an object, if it exists. More... | |
static Task | DropCollection (string CollectionName) |
Drops a collection, if it exist. More... | |
static string | WildcardToRegex (string s, string Wildcard) |
Converts a wildcard string to a regular expression string. More... | |
static Task< GenericObject > | Generalize (object Object) |
Creates a generalized representation of an object. More... | |
static Task< object > | Specialize (GenericObject Object) |
Creates a specialized representation of a generic object. More... | |
static string[] | GetExcludedCollections () |
Gets an array of collections that should be excluded from backups. More... | |
Properties | |
static IDatabaseProvider | Provider [get] |
Registered database provider. More... | |
static bool | HasProvider [get] |
If a database provider is registered. More... | |
static bool | Locked [get] |
If the datbase provider has been locked for the rest of the run-time of the application. More... | |
Events | |
static ObjectEventHandler | ObjectInserted = null |
Event raised when an object has been inserted. More... | |
static ObjectEventHandler | ObjectUpdated = null |
Event raised when an object has been updated. More... | |
static ObjectEventHandler | ObjectDeleted = null |
Event raised when an object has been deleted. More... | |
static CollectionEventHandler | CollectionCleared = null |
Event raised when a collection has been cleared. More... | |
static CollectionRepairedEventHandler | CollectionRepaired = null |
Event raised when a collection has been repaired. More... | |
Static interface for database persistence. In order to work, a database provider has to be assigned to it. This is ideally done as one of the first steps in the startup of an application.
Definition at line 18 of file Database.cs.
|
static |
Adds an index to a collection, if one does not already exist.
CollectionName | Name of collection. |
FieldNames | Sort order. Each string represents a field name. By default, sort order is ascending. If descending sort order is desired, prefix the field name by a hyphen (minus) sign. |
Definition at line 1467 of file Database.cs.
|
static |
Analyzes the database and exports findings to XML.
Output | XML Output. |
XsltPath | Optional XSLT to use to view the output. |
ProgramDataFolder | Program data folder. Can be removed from filenames used, when referencing them in the report. |
ExportData | If data in database is to be exported in output. |
Definition at line 1237 of file Database.cs.
|
static |
Analyzes the database and exports findings to XML.
Output | XML Output. |
XsltPath | Optional XSLT to use to view the output. |
ProgramDataFolder | Program data folder. Can be removed from filenames used, when referencing them in the report. |
ExportData | If data in database is to be exported in output. |
Repair | If files should be repaired if corruptions are detected. |
Definition at line 1342 of file Database.cs.
|
static |
Analyzes the database and exports findings to XML.
Output | XML Output. |
XsltPath | Optional XSLT to use to view the output. |
ProgramDataFolder | Program data folder. Can be removed from filenames used, when referencing them in the report. |
ExportData | If data in database is to be exported in output. |
Repair | If files should be repaired if corruptions are detected. |
Thread | Optional Profiler thread. |
Definition at line 1358 of file Database.cs.
|
static |
Analyzes the database and exports findings to XML.
Output | XML Output. |
XsltPath | Optional XSLT to use to view the output. |
ProgramDataFolder | Program data folder. Can be removed from filenames used, when referencing them in the report. |
ExportData | If data in database is to be exported in output. |
Thread | Optional Profiler thread. |
Definition at line 1251 of file Database.cs.
|
static |
Is called when reparation of a collection is begin.
Collection | Name of collection. |
Definition at line 1411 of file Database.cs.
|
static |
Clears a collection of all objects.
CollectionName | Name of collection to clear. |
Definition at line 1206 of file Database.cs.
|
static |
Deletes a collection of objects in the database.
Objects | Objects to insert. |
Definition at line 746 of file Database.cs.
|
static |
Deletes an object in the database.
Object | Object to insert. |
Definition at line 717 of file Database.cs.
|
static |
Deletes a collection of objects in the database.
Objects | Objects to insert. |
Definition at line 732 of file Database.cs.
|
static |
Deletes a collection of objects in the database, if unlocked. If locked, objects will be deleted at next opportunity.
Objects | Objects to insert. |
Definition at line 777 of file Database.cs.
|
static |
Deletes an object in the database, if unlocked. If locked, object will be deleted at next opportunity.
Object | Object to insert. |
Definition at line 756 of file Database.cs.
|
static |
Deletes a collection of objects in the database, if unlocked. If locked, objects will be deleted at next opportunity.
Objects | Objects to insert. |
Definition at line 765 of file Database.cs.
|
static |
Finds objects in a given collection and deletes them in the same atomic operation.
Collection | Name of collection to search. |
Filter | Optional filter. Can be null. |
SortOrder | Sort order. Each string represents a field name. By default, sort order is ascending. If descending sort order is desired, prefix the field name by a hyphen (minus) sign. |
Definition at line 1028 of file Database.cs.
|
static |
Finds objects in a given collection and deletes them in the same atomic operation.
Collection | Name of collection to search. |
Offset | Result offset. |
MaxCount | Maximum number of objects to return. |
Filter | Optional filter. Can be null. |
SortOrder | Sort order. Each string represents a field name. By default, sort order is ascending. If descending sort order is desired, prefix the field name by a hyphen (minus) sign. |
Definition at line 1043 of file Database.cs.
|
static |
Finds objects in a given collection and deletes them in the same atomic operation.
Collection | Name of collection to search. |
Offset | Result offset. |
MaxCount | Maximum number of objects to return. |
SortOrder | Sort order. Each string represents a field name. By default, sort order is ascending. If descending sort order is desired, prefix the field name by a hyphen (minus) sign. |
Definition at line 1015 of file Database.cs.
|
static |
Finds objects in a given collection and deletes them in the same atomic operation.
Collection | Name of collection to search. |
SortOrder | Sort order. Each string represents a field name. By default, sort order is ascending. If descending sort order is desired, prefix the field name by a hyphen (minus) sign. |
Definition at line 1001 of file Database.cs.
|
static |
Finds objects of a given class T and deletes them in the same atomic operation.
T | Class defining how to deserialize objects found. |
Filter | Optional filter. Can be null. |
SortOrder | Sort order. Each string represents a field name. By default, sort order is ascending. If descending sort order is desired, prefix the field name by a hyphen (minus) sign. |
T | : | class |
Definition at line 972 of file Database.cs.
|
static |
Finds objects of a given class T and deletes them in the same atomic operation.
T | Class defining how to deserialize objects found. |
Offset | Result offset. |
MaxCount | Maximum number of objects to return. |
Filter | Optional filter. Can be null. |
SortOrder | Sort order. Each string represents a field name. By default, sort order is ascending. If descending sort order is desired, prefix the field name by a hyphen (minus) sign. |
T | : | class |
Definition at line 988 of file Database.cs.
|
static |
Finds objects of a given class T and deletes them in the same atomic operation.
T | Class defining how to deserialize objects found. |
Offset | Result offset. |
MaxCount | Maximum number of objects to return. |
SortOrder | Sort order. Each string represents a field name. By default, sort order is ascending. If descending sort order is desired, prefix the field name by a hyphen (minus) sign. |
T | : | class |
Definition at line 958 of file Database.cs.
|
static |
Finds objects of a given class T and deletes them in the same atomic operation.
T | Class defining how to deserialize objects found. |
SortOrder | Sort order. Each string represents a field name. By default, sort order is ascending. If descending sort order is desired, prefix the field name by a hyphen (minus) sign. |
T | : | class |
Definition at line 943 of file Database.cs.
|
static |
Drops a collection, if it exist.
CollectionName | Name of collection. |
Definition at line 1620 of file Database.cs.
|
static |
Ends bulk-processing of data. Must be called once for every call to StartBulk.
Definition at line 1494 of file Database.cs.
|
static |
Is called when reparation of a collection is ended.
Collection | Name of collection. |
Definition at line 1423 of file Database.cs.
|
static |
Finds the first page of objects in a given collection.
Collection | Name of collection to search. |
PageSize | Number of items on a page. |
Filter | Optional filter. Can be null. |
SortOrder | Sort order. Each string represents a field name. By default, sort order is ascending. If descending sort order is desired, prefix the field name by a hyphen (minus) sign. |
Definition at line 505 of file Database.cs.
|
static |
Finds the first page of objects in a given collection.
Collection | Name of collection to search. |
PageSize | Number of items on a page. |
SortOrder | Sort order. Each string represents a field name. By default, sort order is ascending. If descending sort order is desired, prefix the field name by a hyphen (minus) sign. |
Definition at line 491 of file Database.cs.
|
static |
Finds the first page of objects of a given class T .
T | Class defining how to deserialize objects found. |
PageSize | Number of items on a page. |
Filter | Optional filter. Can be null. |
SortOrder | Sort order. Each string represents a field name. By default, sort order is ascending. If descending sort order is desired, prefix the field name by a hyphen (minus) sign. |
T | : | class |
Definition at line 476 of file Database.cs.
|
static |
Enumerates objects of a given class T available in the database, by retrieving items from the database in page chunks and looping through them page for page.
T | Class defining how to deserialize objects found. |
PageSize | Number of items on a page. |
SortOrder | Sort order. Each string represents a field name. By default, sort order is ascending. If descending sort order is desired, prefix the field name by a hyphen (minus) sign. |
T | : | class |
Definition at line 461 of file Database.cs.
|
static |
Finds the first page of objects in a given collection.
T | Class defining how to deserialize objects found. |
Collection | Name of collection to search. |
PageSize | Number of items on a page. |
Filter | Optional filter. Can be null. |
SortOrder | Sort order. Each string represents a field name. By default, sort order is ascending. If descending sort order is desired, prefix the field name by a hyphen (minus) sign. |
T | : | class |
Definition at line 520 of file Database.cs.
|
static |
Performs an export of the database.
Output | Database will be output to this interface. |
Definition at line 1134 of file Database.cs.
|
static |
Performs an export of the database.
Output | Database will be output to this interface. |
CollectionNames | Optional array of collections to export. If null (default), all collections will be exported. |
Definition at line 1145 of file Database.cs.
|
static |
Performs an export of the database.
Output | Database will be output to this interface. |
CollectionNames | Optional array of collections to export. If null (default), all collections will be exported. |
Thread | Optional Profiler thread. |
Definition at line 1157 of file Database.cs.
|
static |
Finds objects in a given collection.
Collection | Name of collection to search. |
Filter | Optional filter. Can be null. |
SortOrder | Sort order. Each string represents a field name. By default, sort order is ascending. If descending sort order is desired, prefix the field name by a hyphen (minus) sign. |
Definition at line 260 of file Database.cs.
|
static |
Finds objects in a given collection.
Collection | Name of collection to search. |
Offset | Result offset. |
MaxCount | Maximum number of objects to return. |
Filter | Optional filter. Can be null. |
SortOrder | Sort order. Each string represents a field name. By default, sort order is ascending. If descending sort order is desired, prefix the field name by a hyphen (minus) sign. |
Definition at line 289 of file Database.cs.
|
static |
Finds objects in a given collection.
Collection | Name of collection to search. |
Offset | Result offset. |
MaxCount | Maximum number of objects to return. |
SortOrder | Sort order. Each string represents a field name. By default, sort order is ascending. If descending sort order is desired, prefix the field name by a hyphen (minus) sign. |
Definition at line 274 of file Database.cs.
|
static |
Finds objects in a given collection.
Collection | Name of collection to search. |
SortOrder | Sort order. Each string represents a field name. By default, sort order is ascending. If descending sort order is desired, prefix the field name by a hyphen (minus) sign. |
Definition at line 247 of file Database.cs.
|
static |
Finds objects of a given class T .
T | Class defining how to deserialize objects found. |
Filter | Optional filter. Can be null. |
SortOrder | Sort order. Each string represents a field name. By default, sort order is ascending. If descending sort order is desired, prefix the field name by a hyphen (minus) sign. |
T | : | class |
Definition at line 203 of file Database.cs.
|
static |
Finds objects of a given class T .
T | Class defining how to deserialize objects found. |
Offset | Result offset. |
MaxCount | Maximum number of objects to return. |
Filter | Optional filter. Can be null. |
SortOrder | Sort order. Each string represents a field name. By default, sort order is ascending. If descending sort order is desired, prefix the field name by a hyphen (minus) sign. |
T | : | class |
Definition at line 234 of file Database.cs.
|
static |
Finds objects of a given class T .
T | Class defining how to deserialize objects found. |
Offset | Result offset. |
MaxCount | Maximum number of objects to return. |
SortOrder | Sort order. Each string represents a field name. By default, sort order is ascending. If descending sort order is desired, prefix the field name by a hyphen (minus) sign. |
T | : | class |
Definition at line 218 of file Database.cs.
|
static |
Finds objects of a given class T .
T | Class defining how to deserialize objects found. |
SortOrder | Sort order. Each string represents a field name. By default, sort order is ascending. If descending sort order is desired, prefix the field name by a hyphen (minus) sign. |
T | : | class |
Definition at line 189 of file Database.cs.
|
static |
Finds objects in a given collection.
T | Class defining how to deserialize objects found. |
Collection | Name of collection to search. |
Filter | Optional filter. Can be null. |
SortOrder | Sort order. Each string represents a field name. By default, sort order is ascending. If descending sort order is desired, prefix the field name by a hyphen (minus) sign. |
T | : | class |
Definition at line 317 of file Database.cs.
|
static |
Finds objects in a given collection.
T | Class defining how to deserialize objects found. |
Collection | Name of collection to search. |
Offset | Result offset. |
MaxCount | Maximum number of objects to return. |
Filter | Optional filter. Can be null. |
SortOrder | Sort order. Each string represents a field name. By default, sort order is ascending. If descending sort order is desired, prefix the field name by a hyphen (minus) sign. |
T | : | class |
Definition at line 350 of file Database.cs.
|
static |
Finds objects in a given collection.
T | Class defining how to deserialize objects found. |
Collection | Name of collection to search. |
Offset | Result offset. |
MaxCount | Maximum number of objects to return. |
SortOrder | Sort order. Each string represents a field name. By default, sort order is ascending. If descending sort order is desired, prefix the field name by a hyphen (minus) sign. |
T | : | class |
Definition at line 333 of file Database.cs.
|
static |
Finds objects in a given collection.
T | Class defining how to deserialize objects found. |
Collection | Name of collection to search. |
SortOrder | Sort order. Each string represents a field name. By default, sort order is ascending. If descending sort order is desired, prefix the field name by a hyphen (minus) sign. |
T | : | class |
Definition at line 302 of file Database.cs.
|
static |
Finds objects in a given collection and deletes them in the same atomic operation.
Collection | Name of collection to search. |
Filter | Optional filter. Can be null. |
SortOrder | Sort order. Each string represents a field name. By default, sort order is ascending. If descending sort order is desired, prefix the field name by a hyphen (minus) sign. |
Definition at line 911 of file Database.cs.
|
static |
Finds objects in a given collection and deletes them in the same atomic operation.
Collection | Name of collection to search. |
Offset | Result offset. |
MaxCount | Maximum number of objects to return. |
Filter | Optional filter. Can be null. |
SortOrder | Sort order. Each string represents a field name. By default, sort order is ascending. If descending sort order is desired, prefix the field name by a hyphen (minus) sign. |
Definition at line 926 of file Database.cs.
|
static |
Finds objects in a given collection and deletes them in the same atomic operation.
Collection | Name of collection to search. |
Offset | Result offset. |
MaxCount | Maximum number of objects to return. |
SortOrder | Sort order. Each string represents a field name. By default, sort order is ascending. If descending sort order is desired, prefix the field name by a hyphen (minus) sign. |
Definition at line 893 of file Database.cs.
|
static |
Finds objects in a given collection and deletes them in the same atomic operation.
Collection | Name of collection to search. |
SortOrder | Sort order. Each string represents a field name. By default, sort order is ascending. If descending sort order is desired, prefix the field name by a hyphen (minus) sign. |
Definition at line 879 of file Database.cs.
|
static |
Finds objects of a given class T and deletes them in the same atomic operation.
T | Class defining how to deserialize objects found. |
Filter | Optional filter. Can be null. |
SortOrder | Sort order. Each string represents a field name. By default, sort order is ascending. If descending sort order is desired, prefix the field name by a hyphen (minus) sign. |
T | : | class |
Definition at line 845 of file Database.cs.
|
static |
Finds objects of a given class T and deletes them in the same atomic operation.
T | Class defining how to deserialize objects found. |
Offset | Result offset. |
MaxCount | Maximum number of objects to return. |
Filter | Optional filter. Can be null. |
SortOrder | Sort order. Each string represents a field name. By default, sort order is ascending. If descending sort order is desired, prefix the field name by a hyphen (minus) sign. |
T | : | class |
Definition at line 861 of file Database.cs.
|
static |
Finds objects of a given class T and deletes them in the same atomic operation.
T | Class defining how to deserialize objects found. |
Offset | Result offset. |
MaxCount | Maximum number of objects to return. |
SortOrder | Sort order. Each string represents a field name. By default, sort order is ascending. If descending sort order is desired, prefix the field name by a hyphen (minus) sign. |
T | : | class |
Definition at line 826 of file Database.cs.
|
static |
Finds objects of a given class T and deletes them in the same atomic operation.
T | Class defining how to deserialize objects found. |
SortOrder | Sort order. Each string represents a field name. By default, sort order is ascending. If descending sort order is desired, prefix the field name by a hyphen (minus) sign. |
T | : | class |
Definition at line 811 of file Database.cs.
|
static |
Finds the first page of objects in a given collection.
Collection | Name of collection to search. |
PageSize | Number of items on a page. |
Filter | Optional filter. Can be null. |
SortOrder | Sort order. Each string represents a field name. By default, sort order is ascending. If descending sort order is desired, prefix the field name by a hyphen (minus) sign. |
Definition at line 408 of file Database.cs.
|
static |
Finds the first page of objects in a given collection.
Collection | Name of collection to search. |
PageSize | Number of items on a page. |
SortOrder | Sort order. Each string represents a field name. By default, sort order is ascending. If descending sort order is desired, prefix the field name by a hyphen (minus) sign. |
Definition at line 394 of file Database.cs.
|
static |
Finds the first page of objects of a given class T .
T | Class defining how to deserialize objects found. |
PageSize | Number of items on a page. |
Filter | Optional filter. Can be null. |
SortOrder | Sort order. Each string represents a field name. By default, sort order is ascending. If descending sort order is desired, prefix the field name by a hyphen (minus) sign. |
T | : | class |
Definition at line 379 of file Database.cs.
|
static |
Finds the first page of objects of a given class T .
T | Class defining how to deserialize objects found. |
PageSize | Number of items on a page. |
SortOrder | Sort order. Each string represents a field name. By default, sort order is ascending. If descending sort order is desired, prefix the field name by a hyphen (minus) sign. |
T | : | class |
Definition at line 364 of file Database.cs.
|
static |
Finds the first page of objects in a given collection.
T | Class defining how to deserialize objects found. |
Collection | Name of collection to search. |
PageSize | Number of items on a page. |
Filter | Optional filter. Can be null. |
SortOrder | Sort order. Each string represents a field name. By default, sort order is ascending. If descending sort order is desired, prefix the field name by a hyphen (minus) sign. |
T | : | class |
Definition at line 423 of file Database.cs.
|
static |
Finds the first object of a given class T and deletes the rest.
T | Class defining how to deserialize objects found. |
Filter | Optional filter. Can be null. |
SortOrder | Sort order. Each string represents a field name. By default, sort order is ascending. If descending sort order is desired, prefix the field name by a hyphen (minus) sign. |
TimeoutException | Thrown if a response is not returned from the database within the given number of milliseconds. |
T | : | class |
Definition at line 578 of file Database.cs.
|
static |
Finds the first object of a given class T and deletes the rest.
T | Class defining how to deserialize objects found. |
SortOrder | Sort order. Each string represents a field name. By default, sort order is ascending. If descending sort order is desired, prefix the field name by a hyphen (minus) sign. |
TimeoutException | Thrown if a response is not returned from the database within the given number of milliseconds. |
T | : | class |
Definition at line 534 of file Database.cs.
|
static |
Finds the first object of a given class T and ignores the rest.
T | Class defining how to deserialize objects found. |
Filter | Optional filter. Can be null. |
SortOrder | Sort order. Each string represents a field name. By default, sort order is ascending. If descending sort order is desired, prefix the field name by a hyphen (minus) sign. |
TimeoutException | Thrown if a response is not returned from the database within the given number of milliseconds. |
T | : | class |
Definition at line 616 of file Database.cs.
|
static |
Finds the first object of a given class T and ignores the rest.
T | Class defining how to deserialize objects found. |
SortOrder | Sort order. Each string represents a field name. By default, sort order is ascending. If descending sort order is desired, prefix the field name by a hyphen (minus) sign. |
TimeoutException | Thrown if a response is not returned from the database within the given number of milliseconds. |
T | : | class |
Definition at line 592 of file Database.cs.
Finds the next page of objects in a given collection.
Page | Page reference. |
Definition at line 446 of file Database.cs.
|
static |
Finds the next page of objects of a given class T .
T | Class defining how to deserialize objects found. |
Page | Page reference. |
T | : | class |
Definition at line 435 of file Database.cs.
|
static |
Flags a collection for repairing.
Collection | Collection |
Reason | Reason for flagging collection. |
Definition at line 1436 of file Database.cs.
|
static |
Creates a generalized representation of an object.
Object | Object |
Definition at line 1678 of file Database.cs.
|
static |
Gets the collection corresponding to a given object.
Object | Object |
Definition at line 1580 of file Database.cs.
|
static |
Gets the collection corresponding to a given type.
Type | Type |
Definition at line 1570 of file Database.cs.
|
static |
Gets an array of available collections.
Definition at line 1560 of file Database.cs.
|
static |
Gets an array of available dictionary collections.
Definition at line 1551 of file Database.cs.
|
static |
Gets a persistent dictionary containing objects in a collection.
Collection | Collection Name |
Definition at line 1542 of file Database.cs.
|
static |
Gets an array of collections that should be excluded from backups.
Definition at line 1697 of file Database.cs.
|
static |
Gets the names of the collections that have been flagged as possibly corrupt.
Definition at line 1394 of file Database.cs.
|
static |
Gets an array of available labels for a collection.
Definition at line 1601 of file Database.cs.
|
static |
Inserts a set of objects into the default collection of the database.
Objects | Objects to insert. |
Definition at line 146 of file Database.cs.
|
static |
Inserts an object into the default collection of the database.
Object | Object to insert. |
Definition at line 95 of file Database.cs.
|
static |
Inserts a set of objects into the default collection of the database.
Objects | Objects to insert. |
Definition at line 132 of file Database.cs.
|
static |
Inserts an object into the database, if unlocked. If locked, object will be inserted at next opportunity.
Objects | Objects to insert. |
Definition at line 177 of file Database.cs.
|
static |
Inserts an object into the database, if unlocked. If locked, object will be inserted at next opportunity.
Object | Object to insert. |
Definition at line 156 of file Database.cs.
|
static |
Inserts an object into the database, if unlocked. If locked, object will be inserted at next opportunity.
Objects | Objects to insert. |
Definition at line 165 of file Database.cs.
|
static |
Checks if a string is a label in a given collection.
Collection | Name of collection. |
Label | Label to check. |
Definition at line 1592 of file Database.cs.
|
static |
Performs an iteration of contents of the entire database.
T | Type of objects to iterate. |
Recipient | Recipient of iterated objects. |
T | : | class |
Definition at line 1168 of file Database.cs.
|
static |
Performs an iteration of contents of the entire database.
T | Type of objects to iterate. |
Recipient | Recipient of iterated objects. |
CollectionNames | Optional array of collections to export. If null, all collections will be exported. |
T | : | class |
Definition at line 1181 of file Database.cs.
|
static |
Performs an iteration of contents of the entire database.
T | Type of objects to iterate. |
Recipient | Recipient of iterated objects. |
CollectionNames | Optional array of collections to export. If null, all collections will be exported. |
Thread | Optional Profiler thread. |
T | : | class |
Definition at line 1195 of file Database.cs.
|
static |
Loads an object given its Object ID ObjectId and its collection name CollectionName .
CollectionName | Name of collection in which the object resides. |
ObjectId | Object ID |
Definition at line 1121 of file Database.cs.
|
static |
Loads an object given its Object ID ObjectId and its base type T .
T | Base type. |
ObjectId | Object ID |
T | : | class |
Definition at line 1090 of file Database.cs.
|
static |
Loads an object given its Object ID ObjectId and its collection name CollectionName .
T | Base type. |
CollectionName | Name of collection in which the object resides. |
ObjectId | Object ID |
T | : | class |
Definition at line 1106 of file Database.cs.
|
static |
Registers a database provider for use from the static Database class, throughout the lifetime of the application.
Note: Only one database provider can be registered.
DatabaseProvider | Database provider to use. |
Definition at line 31 of file Database.cs.
|
static |
Registers a database provider for use from the static Database class, throughout the lifetime of the application.
Note: Only one database provider can be registered.
DatabaseProvider | Database provider to use. |
Lock | If the database provider should be locked for the rest of the running time of the application. |
Definition at line 44 of file Database.cs.
|
static |
Removes an index from a collection, if one exist.
CollectionName | Name of collection. |
FieldNames | Sort order. Each string represents a field name. By default, sort order is ascending. If descending sort order is desired, prefix the field name by a hyphen (minus) sign. |
Definition at line 1478 of file Database.cs.
|
static |
Analyzes the database and repairs it if necessary. Results are exported to XML.
Output | XML Output. |
XsltPath | Optional XSLT to use to view the output. |
ProgramDataFolder | Program data folder. Can be removed from filenames used, when referencing them in the report. |
ExportData | If data in database is to be exported in output. |
Definition at line 1265 of file Database.cs.
|
static |
Analyzes the database and repairs it if necessary. Results are exported to XML.
Output | XML Output. |
XsltPath | Optional XSLT to use to view the output. |
ProgramDataFolder | Program data folder. Can be removed from filenames used, when referencing them in the report. |
ExportData | If data in database is to be exported in output. |
Thread | Optional Profiler thread. |
Definition at line 1279 of file Database.cs.
|
static |
Creates a specialized representation of a generic object.
Object | Generic object. |
Definition at line 1688 of file Database.cs.
|
static |
Starts bulk-proccessing of data. Must be followed by a call to EndBulk.
Definition at line 1486 of file Database.cs.
|
static |
Converts a case insensitive string array to a normal string array.
A | Case insensitive string array- |
Definition at line 1523 of file Database.cs.
|
static |
Converts a case insensitive string array to a normal string array.
A | Case insensitive string array- |
Definition at line 1504 of file Database.cs.
|
static |
Tries to get the Object ID of an object, if it exists.
Object | Object whose Object ID is of interest. |
Definition at line 1611 of file Database.cs.
|
static |
Tries to load an object given its Object ID ObjectId and its collection name CollectionName .
CollectionName | Name of collection in which the object resides. |
ObjectId | Object ID |
Definition at line 1079 of file Database.cs.
|
static |
Tries to load an object given its Object ID ObjectId and its class type T .
T | Base type. |
ObjectId | Object ID |
T | : | class |
Definition at line 1054 of file Database.cs.
|
static |
Tries to load an object given its Object ID ObjectId and its class type T .
T | Base type. |
CollectionName | Name of collection in which the object resides. |
ObjectId | Object ID |
T | : | class |
Definition at line 1067 of file Database.cs.
|
static |
Updates a collection of objects in the database.
Objects | Objects to insert. |
Definition at line 677 of file Database.cs.
|
static |
Updates an object in the database.
Object | Object to insert. |
Definition at line 626 of file Database.cs.
|
static |
Updates a collection of objects in the database.
Objects | Objects to insert. |
Definition at line 663 of file Database.cs.
|
static |
Updates a collection of objects in the database, if unlocked. If locked, objects will be updated at next opportunity.
Objects | Objects to insert. |
Definition at line 708 of file Database.cs.
|
static |
Updates an object in the database, if unlocked. If locked, object will be updated at next opportunity.
Object | Object to insert. |
Definition at line 687 of file Database.cs.
|
static |
Updates a collection of objects in the database, if unlocked. If locked, objects will be updated at next opportunity.
Objects | Objects to insert. |
Definition at line 696 of file Database.cs.
|
static |
Converts a wildcard string to a regular expression string.
s | String |
Wildcard | Wildcard |
Definition at line 1631 of file Database.cs.
|
staticget |
If a database provider is registered.
Definition at line 78 of file Database.cs.
|
staticget |
If the datbase provider has been locked for the rest of the run-time of the application.
Definition at line 86 of file Database.cs.
|
staticget |
Registered database provider.
Definition at line 56 of file Database.cs.
|
static |
Event raised when a collection has been cleared.
Definition at line 1227 of file Database.cs.
|
static |
Event raised when a collection has been repaired.
Definition at line 1331 of file Database.cs.
|
static |
Event raised when an object has been deleted.
Definition at line 726 of file Database.cs.
|
static |
Event raised when an object has been inserted.
Definition at line 126 of file Database.cs.
|
static |
Event raised when an object has been updated.
Definition at line 657 of file Database.cs.