Lite |
The LiteDatabase type exposes the following members.
| Name | Description | |
|---|---|---|
| BeginTrans | Initialize a new transaction. Transaction are created "per-thread". There is only one single transaction per thread. Return true if transaction was created or false if current thread already in a transaction. | |
| Checkpoint | Do database checkpoint. Copy all commited transaction from log file into datafile. | |
| CollectionExists | Checks if a collection exists on database. Collection name is case insensitive | |
| Commit | Commit current transaction | |
| Dispose | ||
| Dispose(Boolean) | ||
| DropCollection | Drop a collection and all data + indexes | |
| Equals | Determines whether the specified object is equal to the current object. (Inherited from Object) | |
| Execute(String, BsonDocument) | Execute SQL commands and return as data reader | |
| Execute(String, BsonValue) | Execute SQL commands and return as data reader | |
| Execute(TextReader, BsonDocument) | Execute SQL commands and return as data reader. | |
| Finalize | (Overrides ObjectFinalize) | |
| GetCollection(String, BsonAutoId) | Get a collection using a generic BsonDocument. If collection does not exist, create a new one. | |
| GetCollectionT | Get a collection using a name based on typeof(T).Name (BsonMapper.ResolveCollectionName function) | |
| GetCollectionT(BsonAutoId) | Get a collection using a name based on typeof(T).Name (BsonMapper.ResolveCollectionName function) | |
| GetCollectionT(String, BsonAutoId) | Get a collection using an entity class as strong typed document. If collection does not exist, create a new one. | |
| GetCollectionNames | Get all collections name inside this database. | |
| GetHashCode | Serves as the default hash function. (Inherited from Object) | |
| GetStorageTFileId | Get new instance of Storage using custom FileId type, custom "_files" collection name and custom "_chunks" collection. LiteDB support multiples file storages (using different files/chunks collection names) | |
| GetType | Gets the Type of the current instance. (Inherited from Object) | |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object) | |
| Pragma(String) | Get value from internal engine variables | |
| Pragma(String, BsonValue) | Set new value to internal engine variables | |
| Rebuild | Rebuild all database to remove unused pages - reduce data file | |
| RenameCollection | Rename a collection. Returns false if oldName does not exists or newName already exists | |
| Rollback | Rollback current transaction | |
| ToString | Returns a string that represents the current object. (Inherited from Object) |
| Name | Description | |
|---|---|---|
| MethodInvoke |
Calls the object method by name.
(Defined by ObjectEx) | |
| PropertyGet |
Gets the value of the object property by name.
(Defined by ObjectEx) | |
| PropertyGetT |
Gets the value of the object property by name.
(Defined by ObjectEx) | |
| PropertySet |
Sets the value of the object property by name.
(Defined by ObjectEx) |