SessionNoServerShared Methods |
The SessionNoServerShared type exposes the following members.
Name | Description | |
---|---|---|
![]() | Abort |
Transaction control, abort the current transaction
(Overrides SessionBase.Abort().) |
![]() | BeginRead |
Transaction control, begin a read only transaction
(Overrides SessionBase.BeginRead(Boolean).) |
![]() | BeginUpdate |
Transaction control, begin an update transaction.
(Overrides SessionBase.BeginUpdate(Boolean).) |
![]() | Checkpoint |
Same as Commit(Boolean, Boolean) followed by BeginUpdate() (Overrides SessionBase.Checkpoint().) |
![]() | ClearCache |
Clears page cache and closes databases. Avoid using this one for now.
(Overrides SessionBase.ClearCache().) |
![]() | ClearCashedPages |
Clear cache of cached pages
(Overrides SessionBase.ClearCashedPages().) |
![]() | ClearPageCache |
Clears cached pages from cache including page weak references.
(Overrides SessionBase.ClearPageCache().) |
![]() | Compact() |
Reduce size of databases, if possible, by first attempting to relocate pages to free areas towards the beginning of each Database file and then by truncating files where unused space begins.
Run Compact() outside the scope of any transaction.
(Overrides SessionBase.Compact().) |
![]() | Compact(Database) |
Reduce size of database, if possible, by truncating file where unused space begins
(Overrides SessionBase.Compact(Database).) |
![]() | CopyAllDatabasesTo |
Copies all databases to a selected directory on the local host.
(Overrides SessionBase.CopyAllDatabasesTo(String, Boolean).) |
![]() | CrossTransactionCache |
By default databases are only referenced by a WeakReference across transaction boundaries.
This means that such Database may or may not be available as a cached database depending on garbage collection activity and if such database also has a strong reference.
This function lets you add a strong reference to a Database so the cached Database may be used if version wasn't changed by a different thread since prior transaction.
The strong reference is removed once the Database is reopened.
(Overrides SessionBase.CrossTransactionCache(Database, Boolean).) |
![]() | DeleteLocation |
Deletes a DatabaseLocation, location must first mot have any Databases in it
(Overrides SessionBase.DeleteLocation(DatabaseLocation, Boolean).) |
![]() | FileOpen |
Opens a Databasefile for read/update. Internal use only.
(Overrides SessionBase.FileOpen(Database, FileAccess, String, FileMode, Boolean, Int32, Boolean).) |
![]() | FlushPageOf |
By calling this you force a persisted (has an Id) object to be written to disk (if updated) and indices (if any) to be updated. Other objects on the same page page will also be written.
(Overrides SessionBase.FlushPageOf(OptimizedPersistable).) |
![]() | FlushUpdates |
Write all updated data. This may free up some memory.
(Overrides SessionBase.FlushUpdates().) |
![]() | ForceDatabaseCacheValidation |
Cached data is set to be validated whenever a new transaction is started.
This function is provided as a way to force cache validation within a transaction without requiring a commit followed by a new transaction.
(Overrides SessionBase.ForceDatabaseCacheValidation().) |
![]() | GlobalObjWrapperGet |
Lookup wrapper object for a non IOptimizedPersistable object
(Overrides SessionBase.GlobalObjWrapperGet(Object, IOptimizedPersistable).) |
![]() | NewDatabase |
Create a new Database with a given database number
(Overrides SessionBase.NewDatabase(UInt32, UInt32, String, Boolean).) |
![]() | NewLocation |
Creates a new DatabaseLocation or updates existing ones
(Overrides SessionBase.NewLocation(DatabaseLocation).) |
![]() | Open(UInt64, Boolean, Boolean, Int32) |
Opens a persistent object
(Overrides SessionBase.Open(UInt64, Boolean, Boolean, Int32).) |
![]() | Open(UInt32, UInt16, UInt16, Boolean, Int32) |
Opens a persistent object
(Overrides SessionBase.Open(UInt32, UInt16, UInt16, Boolean, Int32).) |
![]() | Open(Database, UInt64, Boolean, List<IOptimizedPersistable>, Boolean, Int32, Int32) |
For internal usage only, used in generated code
(Overrides SessionBase.Open(Database, UInt64, Boolean, List<IOptimizedPersistable>, Boolean, Int32, Int32).) |
![]() | Open(Database, UInt64, Boolean, List<IOptimizedPersistable>, Boolean, Int32, Int32, Boolean) |
For internal use only in generated code
(Overrides SessionBase.Open(Database, UInt64, Boolean, List<IOptimizedPersistable>, Boolean, Int32, Int32, Boolean).) |
![]() | OpenAllDatabases |
Open all databases
(Overrides SessionBase.OpenAllDatabases(Boolean).) |
![]() | OpenDatabase |
Opens a Database
(Overrides SessionBase.OpenDatabase(UInt32, Boolean, Boolean).) |
![]() | OpenLocationDatabases |
Opens all the databases in a given location
(Overrides SessionBase.OpenLocationDatabases(DatabaseLocation, Boolean).) |
![]() | OpenSchema |
Get the session active schema
(Overrides SessionBase.OpenSchema(Boolean).) |
![]() | Persist(IOptimizedPersistable, Nullable<UInt16>) |
This is the recommended way of persisting objects, it is simple and efficient. Each type is stored in its own database unless object class overrides PlacementDatabaseNumber
and returns something other than DefaultPlacementDatabaseNumber.
(Overrides SessionBase.Persist(IOptimizedPersistable, Nullable<UInt16>).) |
![]() | Persist(Placement, IOptimizedPersistable, Schema, UInt16, Boolean, Queue<IOptimizedPersistable>) |
Persists an object
(Overrides SessionBase.Persist(Placement, IOptimizedPersistable, Schema, UInt16, Boolean, Queue<IOptimizedPersistable>).) |
![]() | PossiblyFlushUpdatedPages |
Call this function if you may have updated many pages to possibly free up memory if too much memory is in use.
(Overrides SessionBase.PossiblyFlushUpdatedPages(UInt32).) |
![]() | RestoreFrom |
Restores Databases and pages from a backup DatabaseLocation. Existing data will be merged with the restored data unless existing Databases to restore are deleted before the restore.
(Overrides SessionBase.RestoreFrom(DatabaseLocation, DateTime).) |
![]() | SubscribeToChanges |
Subscribe to committed database changes of instances of a type when an an optional property evaluates to true.
(Overrides SessionBase.SubscribeToChanges(Type, String).) |
![]() | Unpersist |
Use this when you want to delete objects that are not assignable as IOptimizedPersistable (Overrides SessionBase.Unpersist(Object).) |
![]() | UpdateDatabase |
Request an update lock on a database
(Overrides SessionNoServer.UpdateDatabase(Database).) |
![]() | UpdateObject(Object) |
Tag an object as updated so that it will be updated persistently
(Overrides SessionBase.UpdateObject(Object).) |
![]() | UpdateObject(IOptimizedPersistable, Boolean, Boolean) |
Updates an object
(Overrides SessionBase.UpdateObject(IOptimizedPersistable, Boolean, Boolean).) |
![]() | Verify |
Verifies that databases are valid by reading and following references. An exception is thrown if an issue is found.
(Overrides SessionBase.Verify().) |
Name | Description | |
---|---|---|
![]() | ExportToCSV |
Export all persistent objects to .csv files, one file for each Type and version of Type.
This is preview release, format may change. ImportFromCSV can be used to recreate your data.
Note that Microsoft Excel can't handle many of these CSV files due to a field value limitation (at about 33000 chars)
Notepad++ is one application that can read these files.
Some fields like array data are encoded http://msdn.microsoft.com/en-us/library/dhx0d524(v=vs.110).aspx
(Defined by ImportExportCsv.) |
![]() | ExportToJson<T>(UInt64) | Overloaded. (Defined by JsonImportExport.) |
![]() | ExportToJson<T>(Oid) | Overloaded. (Defined by JsonImportExport.) |
![]() | ExportToJson<T>(Boolean, Boolean) | Overloaded. (Defined by JsonImportExport.) |
![]() | ImportFromCSV |
Restores database files, pages and objects from a .csv file data created with ExportToCSV
(Defined by ImportExportCsv.) |
![]() | ImportJson<T> | (Defined by JsonImportExport.) |
![]() | MicrosoftSync | (Defined by Sync.) |
![]() | SyncWith(SessionBase) | Overloaded. (Defined by Sync.) |
![]() | SyncWith(SessionBase, Func<SessionBase, UInt64, Change, Boolean>) | Overloaded. (Defined by Sync.) |