ServerClientSession Methods |
The ServerClientSession type exposes the following members.
Name | Description | |
---|---|---|
Abort |
Aborts a transaction, it undoes all persistent changes made within the transaction
(Overrides SessionBaseAbort.) | |
BeginRead |
Transaction control, begin a read only transaction
(Overrides SessionBaseBeginRead(Boolean).) | |
BeginReadWithEvents |
Start a read only transaction and gets a list of created/updated objects as subscribed to by this session
| |
BeginUpdate |
Transaction control, begin an update transaction.
(Overrides SessionBaseBeginUpdate(Boolean).) | |
BeginUpdateWithEvents |
Starts a transaction that may be creating new persistent data and/or updating persistent data and gets a list of created/updated objects as subscribed to by this session
| |
ClearServerCache |
Used as an aid when debugging server data, internal use, avoid using for now.
| |
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 SessionBaseCompact.) | |
Compact(Database) |
Reduce size of database, if possible, by truncating file where unused space begins
(Overrides SessionBaseCompact(Database).) | |
CopyAllDatabasesTo |
Copies all databases to a selected directory on the local host.
(Overrides SessionBaseCopyAllDatabasesTo(String, Boolean).) | |
DeleteLocation |
Deletes a DatabaseLocation, location must first mot have any Databases in it
(Overrides SessionBaseDeleteLocation(DatabaseLocation, Boolean).) | |
FlushUpdates |
Send all updated pages to the server(s) managing those pages, freeing up memory in client.
(Overrides SessionBaseFlushUpdates.) | |
FlushUpdatesServers |
Make servers Write all updated data. This may free up some memory on the servers. Only effects sessions using VelocityDbServer(s)
(Overrides SessionBaseFlushUpdatesServers.) | |
InUseNumberOfPages |
Gets the number of pages currently in use by a Database
(Overrides SessionBaseInUseNumberOfPages(Database).) | |
NewDatabase |
Create a new Database with a given database number
(Overrides SessionBaseNewDatabase(UInt32, UInt32, String, Boolean).) | |
NewLocation |
Creates a new DatabaseLocation or updates existing ones
(Overrides SessionBaseNewLocation(DatabaseLocation).) | |
OpenAllDatabases |
Open all databases
(Overrides SessionBaseOpenAllDatabases(Boolean).) | |
OpenDatabase |
Opens a Database
(Overrides SessionBaseOpenDatabase(UInt32, Boolean, Boolean).) | |
OpenLocationDatabases |
Opens all the databases in a given location
(Overrides SessionBaseOpenLocationDatabases(DatabaseLocation, Boolean).) | |
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 SessionBaseRestoreFrom(DatabaseLocation, DateTime).) | |
SubscribeToChanges |
Subscribe to committed database changes of instances of a type when an optional property evaluates to true.
(Overrides SessionBaseSubscribeToChanges(Type, String).) | |
UnsubscribeToChanges |
Unsubscribe to committed database changes of instances of a type when an optional property evaluates to true.
(Overrides SessionBaseUnsubscribeToChanges(Type, String).) | |
UpdateDatabase |
Request an update lock on a database
(Overrides SessionBaseUpdateDatabase(Database).) |
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.) | |
ExportToJsonT(UInt64) | Overloaded. (Defined by JsonImportExport.) | |
ExportToJsonT(Oid) | Overloaded. (Defined by JsonImportExport.) | |
ExportToJsonT(Boolean, Boolean) | Overloaded. (Defined by JsonImportExport.) | |
ImportFromCSV |
Restores database files, pages and objects from a .csv file data created with ExportToCSV
(Defined by ImportExportCsv.) | |
ImportJsonT | (Defined by JsonImportExport.) | |
MicrosoftSync | (Defined by Sync.) | |
SyncWith(SessionBase) | Overloaded. (Defined by Sync.) | |
SyncWith(SessionBase, FuncSessionBase, UInt64, Change, Boolean) | Overloaded. (Defined by Sync.) |