LiteDatabase
Constuctors
| Signature | Description | 
|---|---|
| LiteDatabase(string connectionString, BsonMapper mapper = null) | Creates a new instance of LiteDatabasebased on the provided connection string and mapper. | 
| LiteDatabase(ConnectionString connectionString, BsonMapper mapper = null) | Creates a new instance of LiteDatabasebased on the provided parsed connection string and mapper. | 
| LiteDatabase(Stream stream, BsonMapper mapper = null, Stream logStream = null) | Creates a new instance of LiteDatabasebased on the provided data and log streams and mapper. | 
| LiteDatabase(ILiteEngine engine, BsonMapper mapper = null, bool disposeOnClose = true) | Creates a new instance of LiteDatabasebased on a pre-existingILiteEngineand a mapper. IfdisposeOnCloseis true,enginewill also be disposed whenthisis disposed. | 
Fields and Properties
| Signature | Description | 
|---|---|
| BsonMapper Mapper { get; } | Gets the BsonMapperbeing used by this instance. Read-only (use themapperparameter in the constructors). | 
| ILiteStorage<string> FileStorage { get; } | Gets an instance of ILiteStorage<string>that uses_chunkand_filescollections. For custom names, useGetStoragemethod. | 
| int UserVersion { get; set; } | Gets or sets the UserVersionpragma for the current datafile. | 
| TimeSpan Timeout { get; set; } | Gets or sets the Timeoutpragma for the current datafile. | 
| bool UtcDate { get; set; } | Gets or sets the UtcDatepragma for the current datafile. | 
| long LimitSize { get; set; } | Gets or sets the LimitSizepragma for the current datafile. | 
| int CheckpointSize { get; set; } | Gets or sets the Checkpointpragma for the current datafile. | 
| Collation Collation { get; } | Gets the Timeoutpragma for the current datafile (can only be changed with a rebuild). |