LocalDb implmentation if ILocalDbFactory.
More...
|
|
| LocalDbFactory () |
| | Default constructor for a LocalDbFactory.
|
| |
| | LocalDbFactory (string instanceName) |
| | Constructor for a LocalDbFactory which takes an override InstanceName to attach to.
|
| |
| virtual void | CreateDatabase (string databaseName, string databaseFile) |
| | Creates the LocalDb temporary database.
|
| |
| string | GetMasterConnectionString () |
| | Gets the connectionstring to the master database for the configured LocalDb instance, required to be able to create a new temporary LocalDb database.
|
| |
|
|
string | InstanceName [get, set] |
| | LocalDb instance, usually something like "v11.0".
|
| |
LocalDb implmentation if ILocalDbFactory.
◆ LocalDbFactory()
| PeanutButter.TempDb.LocalDb.LocalDbFactory.LocalDbFactory |
( |
string |
instanceName | ) |
|
Constructor for a LocalDbFactory which takes an override InstanceName to attach to.
- Parameters
-
◆ CreateDatabase()
| virtual void PeanutButter.TempDb.LocalDb.LocalDbFactory.CreateDatabase |
( |
string |
databaseName, |
|
|
string |
databaseFile |
|
) |
| |
|
virtual |
Creates the LocalDb temporary database.
- Parameters
-
| databaseName | Name of the required database |
| databaseFile | A temporary file path which may be used as backing for the new database |
Implements PeanutButter.TempDb.LocalDb.ILocalDbFactory.
◆ GetMasterConnectionString()
| string PeanutButter.TempDb.LocalDb.LocalDbFactory.GetMasterConnectionString |
( |
| ) |
|
Gets the connectionstring to the master database for the configured LocalDb instance, required to be able to create a new temporary LocalDb database.
- Returns
The documentation for this class was generated from the following file:
- source/TempDb/PeanutButter.TempDb.LocalDb/LocalDbFactory.cs