![]() |
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 Task< bool > | Process< T > (IProcessor< T > Processor, params string[] SortOrder) |
| Processes objects of a given class T . More... | |
| static Task< bool > | Process< T > (IProcessor< T > Processor, Filter Filter, params string[] SortOrder) |
| Processes objects of a given class T . More... | |
| static Task< bool > | Process< T > (IProcessor< T > Processor, int Offset, int MaxCount, params string[] SortOrder) |
| Processes objects of a given class T . More... | |
| static Task< bool > | Process< T > (IProcessor< T > Processor, int Offset, int MaxCount, Filter Filter, params string[] SortOrder) |
| Processes objects of a given class T . More... | |
| static Task< bool > | Process (IProcessor< object > Processor, string Collection, params string[] SortOrder) |
| Processes objects in a given collection. More... | |
| static Task< bool > | Process (IProcessor< object > Processor, string Collection, Filter Filter, params string[] SortOrder) |
| Processes objects in a given collection. More... | |
| static Task< bool > | Process (IProcessor< object > Processor, string Collection, int Offset, int MaxCount, params string[] SortOrder) |
| Processes objects in a given collection. More... | |
| static Task< bool > | Process (IProcessor< object > Processor, string Collection, int Offset, int MaxCount, Filter Filter, params string[] SortOrder) |
| Processes objects in a given collection. More... | |
| static Task< bool > | Process< T > (IProcessor< T > Processor, string Collection, string[] SortOrder) |
| Processes objects in a given collection. More... | |
| static Task< bool > | Process< T > (IProcessor< T > Processor, string Collection, Filter Filter, params string[] SortOrder) |
| Processes objects in a given collection. More... | |
| static Task< bool > | Process< T > (IProcessor< T > Processor, string Collection, int Offset, int MaxCount, params string[] SortOrder) |
| Processes objects in a given collection. More... | |
| static Task< bool > | Process< T > (IProcessor< T > Processor, string Collection, int Offset, int MaxCount, Filter Filter, params string[] SortOrder) |
| Processes objects in a given collection. More... | |
| static Task< bool > | Process< T > (Predicate< T > Processor, params string[] SortOrder) |
| Processes objects of a given class T . More... | |
| static Task< bool > | Process< T > (Predicate< T > Processor, Filter Filter, params string[] SortOrder) |
| Processes objects of a given class T . More... | |
| static Task< bool > | Process< T > (Predicate< T > Processor, int Offset, int MaxCount, params string[] SortOrder) |
| Processes objects of a given class T . More... | |
| static Task< bool > | Process< T > (Predicate< T > Processor, int Offset, int MaxCount, Filter Filter, params string[] SortOrder) |
| Processes objects of a given class T . More... | |
| static Task< bool > | Process (Predicate< object > Processor, string Collection, params string[] SortOrder) |
| Processes objects in a given collection. More... | |
| static Task< bool > | Process (Predicate< object > Processor, string Collection, Filter Filter, params string[] SortOrder) |
| Processes objects in a given collection. More... | |
| static Task< bool > | Process (Predicate< object > Processor, string Collection, int Offset, int MaxCount, params string[] SortOrder) |
| Processes objects in a given collection. More... | |
| static Task< bool > | Process (Predicate< object > Processor, string Collection, int Offset, int MaxCount, Filter Filter, params string[] SortOrder) |
| Processes objects in a given collection. More... | |
| static Task< bool > | Process< T > (Predicate< T > Processor, string Collection, string[] SortOrder) |
| Processes objects in a given collection. More... | |
| static Task< bool > | Process< T > (Predicate< T > Processor, string Collection, Filter Filter, params string[] SortOrder) |
| Processes objects in a given collection. More... | |
| static Task< bool > | Process< T > (Predicate< T > Processor, string Collection, int Offset, int MaxCount, params string[] SortOrder) |
| Processes objects in a given collection. More... | |
| static Task< bool > | Process< T > (Predicate< T > Processor, string Collection, int Offset, int MaxCount, Filter Filter, params string[] SortOrder) |
| Processes objects in a given collection. More... | |
| static Task< bool > | Process< T > (PredicateAsync< T > Processor, params string[] SortOrder) |
| Processes objects of a given class T . More... | |
| static Task< bool > | Process< T > (PredicateAsync< T > Processor, Filter Filter, params string[] SortOrder) |
| Processes objects of a given class T . More... | |
| static Task< bool > | Process< T > (PredicateAsync< T > Processor, int Offset, int MaxCount, params string[] SortOrder) |
| Processes objects of a given class T . More... | |
| static Task< bool > | Process< T > (PredicateAsync< T > Processor, int Offset, int MaxCount, Filter Filter, params string[] SortOrder) |
| Processes objects of a given class T . More... | |
| static Task< bool > | Process (PredicateAsync< object > Processor, string Collection, params string[] SortOrder) |
| Processes objects in a given collection. More... | |
| static Task< bool > | Process (PredicateAsync< object > Processor, string Collection, Filter Filter, params string[] SortOrder) |
| Processes objects in a given collection. More... | |
| static Task< bool > | Process (PredicateAsync< object > Processor, string Collection, int Offset, int MaxCount, params string[] SortOrder) |
| Processes objects in a given collection. More... | |
| static Task< bool > | Process (PredicateAsync< object > Processor, string Collection, int Offset, int MaxCount, Filter Filter, params string[] SortOrder) |
| Processes objects in a given collection. More... | |
| static Task< bool > | Process< T > (PredicateAsync< T > Processor, string Collection, string[] SortOrder) |
| Processes objects in a given collection. More... | |
| static Task< bool > | Process< T > (PredicateAsync< T > Processor, string Collection, Filter Filter, params string[] SortOrder) |
| Processes objects in a given collection. More... | |
| static Task< bool > | Process< T > (PredicateAsync< T > Processor, string Collection, int Offset, int MaxCount, params string[] SortOrder) |
| Processes objects in a given collection. More... | |
| static Task< bool > | Process< T > (PredicateAsync< T > Processor, string Collection, int Offset, int MaxCount, Filter Filter, params string[] SortOrder) |
| Processes objects in a given collection. 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< int > | Delete< T > (params string[] SortOrder) |
| Finds objects of a given class T and deletes them in the same atomic operation. More... | |
| static async Task< int > | Delete< 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< int > | Delete< 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< int > | Delete< 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< int > | Delete (string Collection, params string[] SortOrder) |
| Finds objects in a given collection and deletes them in the same atomic operation. More... | |
| static async Task< int > | Delete (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< int > | Delete (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< int > | Delete (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, params 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< string[][]> | GetIndices (string CollectionName) |
| 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< IPersistedQueue > | GetQueue (string QueueName) |
| Gets a persistent dictionary containing objects in a collection. More... | |
| static Task< IPersistedQueue > | GetQueue (string QueueName, bool CanBeNull) |
| Gets a persistent dictionary containing objects in a collection. More... | |
| static Task< string[]> | GetQueues () |
| Gets an array of available queue names. 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 EventHandler< ObjectEventArgs > | ObjectInserted = null |
| Event raised when an object has been inserted. More... | |
| static EventHandler< ObjectEventArgs > | ObjectUpdated = null |
| Event raised when an object has been updated. More... | |
| static EventHandler< ObjectEventArgs > | ObjectDeleted = null |
| Event raised when an object has been deleted. More... | |
| static EventHandlerAsync< CollectionEventArgs > | CollectionCleared = null |
| Event raised when a collection has been cleared. More... | |
| static EventHandlerAsync< CollectionRepairedEventArgs > | 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 20 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 2220 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 1985 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 2090 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 2106 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 1999 of file Database.cs.
|
static |
Is called when reparation of a collection is begin.
| Collection | Name of collection. |
Definition at line 2159 of file Database.cs.
|
static |
Clears a collection of all objects.
| CollectionName | Name of collection to clear. |
Definition at line 1965 of file Database.cs.
|
static |
Deletes a collection of objects in the database.
| Objects | Objects to insert. |
Definition at line 1320 of file Database.cs.
|
static |
Deletes an object in the database.
| Object | Object to insert. |
Definition at line 1291 of file Database.cs.
|
static |
Deletes a collection of objects in the database.
| Objects | Objects to insert. |
Definition at line 1306 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 1654 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 1669 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 1620 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 1606 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 1556 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 1572 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 1521 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 1506 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 1351 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 1330 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 1339 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 1787 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 1802 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 1774 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 1760 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 1731 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 1747 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 1717 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 1702 of file Database.cs.
|
static |
Drops a collection, if it exist.
| CollectionName | Name of collection. |
Definition at line 2415 of file Database.cs.
|
static |
Ends bulk-processing of data. Must be called once for every call to StartBulk.
Definition at line 2259 of file Database.cs.
|
static |
Is called when reparation of a collection is ended.
| Collection | Name of collection. |
Definition at line 2171 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 496 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 482 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 467 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 452 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 511 of file Database.cs.
|
static |
Performs an export of the database.
Definition at line 1893 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 1904 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 1916 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 251 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 280 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 265 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 238 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 194 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 225 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 209 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 180 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 308 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 341 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 324 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 293 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 1474 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 1489 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 1456 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 1442 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 1408 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 1424 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 1389 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 1374 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 399 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 385 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 370 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 355 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 414 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 569 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 525 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 607 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 583 of file Database.cs.
Finds the next page of objects in a given collection.
| Page | Page reference. |
Definition at line 437 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 426 of file Database.cs.
|
static |
Flags a collection for repairing.
| Collection | Collection |
| Reason | Reason for flagging collection. |
Definition at line 2184 of file Database.cs.
|
static |
Creates a generalized representation of an object.
| Object | Object |
Definition at line 2473 of file Database.cs.
|
static |
Gets the collection corresponding to a given object.
| Object | Object |
Definition at line 2375 of file Database.cs.
|
static |
Gets the collection corresponding to a given type.
| Type | Type |
Definition at line 2365 of file Database.cs.
|
static |
Gets an array of available collections.
Definition at line 2355 of file Database.cs.
|
static |
Gets an array of available dictionary collections.
Definition at line 2316 of file Database.cs.
|
static |
Gets a persistent dictionary containing objects in a collection.
| Collection | Collection Name |
Definition at line 2307 of file Database.cs.
|
static |
Gets an array of collections that should be excluded from backups.
Definition at line 2492 of file Database.cs.
|
static |
Gets the names of the collections that have been flagged as possibly corrupt.
Definition at line 2142 of file Database.cs.
|
static |
Removes an index from a collection, if one exist.
| CollectionName | Name of collection. |
Definition at line 2243 of file Database.cs.
|
static |
Gets an array of available labels for a collection.
Definition at line 2396 of file Database.cs.
|
static |
Gets a persistent dictionary containing objects in a collection.
| QueueName | Queue Name |
Definition at line 2326 of file Database.cs.
|
static |
Gets a persistent dictionary containing objects in a collection.
| QueueName | Queue Name |
| CanBeNull | Can return null if a queue is not found. |
Definition at line 2337 of file Database.cs.
|
static |
Gets an array of available queue names.
Definition at line 2346 of file Database.cs.
|
static |
Inserts a set of objects into the default collection of the database.
| Objects | Objects to insert. |
Definition at line 137 of file Database.cs.
|
static |
Inserts an object into the default collection of the database.
| Object | Object to insert. |
Definition at line 97 of file Database.cs.
|
static |
Inserts a set of objects into the default collection of the database.
| Objects | Objects to insert. |
Definition at line 123 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 168 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 147 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 156 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 2387 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 1927 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 1940 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 1954 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 1880 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 1849 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 1865 of file Database.cs.
|
static |
Processes objects in a given collection.
| Collection | Name of collection to search. |
| Processor | Processor to call for every object, unless the processor returns false, in which the process is cancelled. |
| 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 703 of file Database.cs.
|
static |
Processes objects in a given collection.
| Collection | Name of collection to search. |
| Processor | Processor to call for every object, unless the processor returns false, in which the process is cancelled. |
| Offset | Result offset. |
| MaxCount | Maximum number of objects to process. |
| 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 736 of file Database.cs.
|
static |
Processes objects in a given collection.
| Collection | Name of collection to search. |
| Processor | Processor to call for every object, unless the processor returns false, in which the process is cancelled. |
| Offset | Result offset. |
| MaxCount | Maximum number of objects to process. |
| 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 719 of file Database.cs.
|
static |
Processes objects in a given collection.
| Processor | Processor to call for every object, unless the processor returns false, in which the process is cancelled. |
| 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 688 of file Database.cs.
|
static |
Processes objects in a given collection.
| Collection | Name of collection to search. |
| Processor | Processor to call for every object, unless the processor returns false, in which the process is cancelled. |
| 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 901 of file Database.cs.
|
static |
Processes objects in a given collection.
| Collection | Name of collection to search. |
| Processor | Processor to call for every object, unless the processor returns false, in which the process is cancelled. |
| Offset | Result offset. |
| MaxCount | Maximum number of objects to process. |
| 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 934 of file Database.cs.
|
static |
Processes objects in a given collection.
| Collection | Name of collection to search. |
| Processor | Processor to call for every object, unless the processor returns false, in which the process is cancelled. |
| Offset | Result offset. |
| MaxCount | Maximum number of objects to process. |
| 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 917 of file Database.cs.
|
static |
Processes objects in a given collection.
| Processor | Processor to call for every object, unless the processor returns false, in which the process is cancelled. |
| 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 886 of file Database.cs.
|
static |
Processes objects in a given collection.
| Collection | Name of collection to search. |
| Processor | Processor to call for every object, unless the processor returns false, in which the process is cancelled. |
| 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 1099 of file Database.cs.
|
static |
Processes objects in a given collection.
| Collection | Name of collection to search. |
| Processor | Processor to call for every object, unless the processor returns false, in which the process is cancelled. |
| Offset | Result offset. |
| MaxCount | Maximum number of objects to process. |
| 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 1132 of file Database.cs.
|
static |
Processes objects in a given collection.
| Collection | Name of collection to search. |
| Processor | Processor to call for every object, unless the processor returns false, in which the process is cancelled. |
| Offset | Result offset. |
| MaxCount | Maximum number of objects to process. |
| 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 1115 of file Database.cs.
|
static |
Processes objects in a given collection.
| Processor | Processor to call for every object, unless the processor returns false, in which the process is cancelled. |
| 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 1084 of file Database.cs.
|
static |
Processes objects of a given class T .
| T | Class defining how to deserialize objects found. |
| Processor | Processor to call for every object, unless the processor returns false, in which the process is cancelled. |
| 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 638 of file Database.cs.
|
static |
Processes objects of a given class T .
| T | Class defining how to deserialize objects found. |
| Processor | Processor to call for every object, unless the processor returns false, in which the process is cancelled. |
| Offset | Result offset. |
| MaxCount | Maximum number of objects to process. |
| 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 673 of file Database.cs.
|
static |
Processes objects of a given class T .
| T | Class defining how to deserialize objects found. |
| Processor | Processor to call for every object, unless the processor returns false, in which the process is cancelled. |
| Offset | Result offset. |
| MaxCount | Maximum number of objects to process. |
| 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 655 of file Database.cs.
|
static |
Processes objects of a given class T .
| T | Class defining how to deserialize objects found. |
| Processor | Processor to call for every object, unless the processor returns false, in which the process is cancelled. |
| 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 622 of file Database.cs.
|
static |
Processes objects in a given collection.
| T | Class defining how to deserialize objects found. |
| Processor | Processor to call for every object, unless the processor returns false, in which the process is cancelled. |
| 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 768 of file Database.cs.
|
static |
Processes objects in a given collection.
| T | Class defining how to deserialize objects found. |
| Processor | Processor to call for every object, unless the processor returns false, in which the process is cancelled. |
| Collection | Name of collection to search. |
| Offset | Result offset. |
| MaxCount | Maximum number of objects to process. |
| 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 805 of file Database.cs.
|
static |
Processes objects in a given collection.
| T | Class defining how to deserialize objects found. |
| Processor | Processor to call for every object, unless the processor returns false, in which the process is cancelled. |
| Collection | Name of collection to search. |
| Offset | Result offset. |
| MaxCount | Maximum number of objects to process. |
| 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 786 of file Database.cs.
|
static |
Processes objects in a given collection.
| T | Class defining how to deserialize objects found. |
| Processor | Processor to call for every object, unless the processor returns false, in which the process is cancelled. |
| 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 751 of file Database.cs.
|
static |
Processes objects of a given class T .
| T | Class defining how to deserialize objects found. |
| Processor | Processor to call for every object, unless the processor returns false, in which the process is cancelled. |
| 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 836 of file Database.cs.
|
static |
Processes objects of a given class T .
| T | Class defining how to deserialize objects found. |
| Processor | Processor to call for every object, unless the processor returns false, in which the process is cancelled. |
| Offset | Result offset. |
| MaxCount | Maximum number of objects to process. |
| 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 871 of file Database.cs.
|
static |
Processes objects of a given class T .
| T | Class defining how to deserialize objects found. |
| Processor | Processor to call for every object, unless the processor returns false, in which the process is cancelled. |
| Offset | Result offset. |
| MaxCount | Maximum number of objects to process. |
| 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 853 of file Database.cs.
|
static |
Processes objects of a given class T .
| T | Class defining how to deserialize objects found. |
| Processor | Processor to call for every object, unless the processor returns false, in which the process is cancelled. |
| 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 820 of file Database.cs.
|
static |
Processes objects in a given collection.
| T | Class defining how to deserialize objects found. |
| Processor | Processor to call for every object, unless the processor returns false, in which the process is cancelled. |
| 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 966 of file Database.cs.
|
static |
Processes objects in a given collection.
| T | Class defining how to deserialize objects found. |
| Processor | Processor to call for every object, unless the processor returns false, in which the process is cancelled. |
| Collection | Name of collection to search. |
| Offset | Result offset. |
| MaxCount | Maximum number of objects to process. |
| 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 1003 of file Database.cs.
|
static |
Processes objects in a given collection.
| T | Class defining how to deserialize objects found. |
| Processor | Processor to call for every object, unless the processor returns false, in which the process is cancelled. |
| Collection | Name of collection to search. |
| Offset | Result offset. |
| MaxCount | Maximum number of objects to process. |
| 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 984 of file Database.cs.
|
static |
Processes objects in a given collection.
| T | Class defining how to deserialize objects found. |
| Processor | Processor to call for every object, unless the processor returns false, in which the process is cancelled. |
| 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 949 of file Database.cs.
|
static |
Processes objects of a given class T .
| T | Class defining how to deserialize objects found. |
| Processor | Processor to call for every object, unless the processor returns false, in which the process is cancelled. |
| 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 1034 of file Database.cs.
|
static |
Processes objects of a given class T .
| T | Class defining how to deserialize objects found. |
| Processor | Processor to call for every object, unless the processor returns false, in which the process is cancelled. |
| Offset | Result offset. |
| MaxCount | Maximum number of objects to process. |
| 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 1069 of file Database.cs.
|
static |
Processes objects of a given class T .
| T | Class defining how to deserialize objects found. |
| Processor | Processor to call for every object, unless the processor returns false, in which the process is cancelled. |
| Offset | Result offset. |
| MaxCount | Maximum number of objects to process. |
| 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 1051 of file Database.cs.
|
static |
Processes objects of a given class T .
| T | Class defining how to deserialize objects found. |
| Processor | Processor to call for every object, unless the processor returns false, in which the process is cancelled. |
| 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 1018 of file Database.cs.
|
static |
Processes objects in a given collection.
| T | Class defining how to deserialize objects found. |
| Processor | Processor to call for every object, unless the processor returns false, in which the process is cancelled. |
| 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 1164 of file Database.cs.
|
static |
Processes objects in a given collection.
| T | Class defining how to deserialize objects found. |
| Processor | Processor to call for every object, unless the processor returns false, in which the process is cancelled. |
| Collection | Name of collection to search. |
| Offset | Result offset. |
| MaxCount | Maximum number of objects to process. |
| 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 1201 of file Database.cs.
|
static |
Processes objects in a given collection.
| T | Class defining how to deserialize objects found. |
| Processor | Processor to call for every object, unless the processor returns false, in which the process is cancelled. |
| Collection | Name of collection to search. |
| Offset | Result offset. |
| MaxCount | Maximum number of objects to process. |
| 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 1182 of file Database.cs.
|
static |
Processes objects in a given collection.
| T | Class defining how to deserialize objects found. |
| Processor | Processor to call for every object, unless the processor returns false, in which the process is cancelled. |
| 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 1147 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 33 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 46 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 2231 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 2013 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 2027 of file Database.cs.
|
static |
Creates a specialized representation of a generic object.
| Object | Generic object. |
Definition at line 2483 of file Database.cs.
|
static |
Starts bulk-proccessing of data. Must be followed by a call to EndBulk.
Definition at line 2251 of file Database.cs.
|
static |
Converts a case insensitive string array to a normal string array.
| A | Case insensitive string array- |
Definition at line 2288 of file Database.cs.
|
static |
Converts a case insensitive string array to a normal string array.
| A | Case insensitive string array- |
Definition at line 2269 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 2406 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 1838 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 1813 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 1826 of file Database.cs.
|
static |
Updates a collection of objects in the database.
| Objects | Objects to insert. |
Definition at line 1251 of file Database.cs.
|
static |
Updates an object in the database.
| Object | Object to insert. |
Definition at line 1211 of file Database.cs.
|
static |
Updates a collection of objects in the database.
| Objects | Objects to insert. |
Definition at line 1237 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 1282 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 1261 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 1270 of file Database.cs.
|
static |
Converts a wildcard string to a regular expression string.
| s | String |
| Wildcard | Wildcard |
Definition at line 2426 of file Database.cs.
|
staticget |
If a database provider is registered.
Definition at line 80 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 88 of file Database.cs.
|
staticget |
Registered database provider.
Definition at line 58 of file Database.cs.
|
static |
Event raised when a collection has been cleared.
Definition at line 1975 of file Database.cs.
|
static |
Event raised when a collection has been repaired.
Definition at line 2079 of file Database.cs.
|
static |
Event raised when an object has been deleted.
Definition at line 1300 of file Database.cs.
|
static |
Event raised when an object has been inserted.
Definition at line 117 of file Database.cs.
|
static |
Event raised when an object has been updated.
Definition at line 1231 of file Database.cs.