mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-14 10:47:08 -07:00
wtf git extentions?
This commit is contained in:
parent
885688f4c2
commit
83186ba87b
11 changed files with 72 additions and 39 deletions
|
@ -6,15 +6,17 @@ namespace NzbDrone.SqlCe
|
|||
{
|
||||
public class SqlCeProxy
|
||||
{
|
||||
public void EnsureDatabase(string constr)
|
||||
public SqlCeConnection EnsureDatabase(string connectionString)
|
||||
{
|
||||
var connection = new SqlCeConnection(constr);
|
||||
var connection = new SqlCeConnection(connectionString);
|
||||
|
||||
if (!File.Exists(connection.Database))
|
||||
{
|
||||
var engine = new SqlCeEngine(constr);
|
||||
var engine = new SqlCeEngine(connectionString);
|
||||
engine.CreateDatabase();
|
||||
}
|
||||
|
||||
return connection;
|
||||
}
|
||||
|
||||
public DbProviderFactory GetSqlCeProviderFactory()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue