diff --git a/Config/FluentCommon.cs b/Config/FluentCommon.cs index eae4997ca..afdc2470e 100644 --- a/Config/FluentCommon.cs +++ b/Config/FluentCommon.cs @@ -28,13 +28,13 @@ namespace Config switch (dbType) { default: - case DBType.SQLite: - cfg = cfg.Database(SQLiteConfiguration.Standard.UsingFile(connectionString)); - break; case DBType.MySql: cfg = cfg.Database(MySQLConfiguration.Standard.ConnectionString(connectionString)); break; - } + case DBType.SQLite: + cfg = cfg.Database(SQLiteConfiguration.Standard.UsingFile(connectionString)); + break; + } switch (database) { diff --git a/SharedDatabase/EventsDB.cs b/SharedDatabase/EventsDB.cs index b163f076c..6673bf2ac 100644 --- a/SharedDatabase/EventsDB.cs +++ b/SharedDatabase/EventsDB.cs @@ -64,13 +64,13 @@ namespace SharedDatabase switch (dbType) { default: - case DBType.SQLite: - cfg = cfg.Database(SQLiteConfiguration.Standard.UsingFile(connectionString)); - break; case DBType.MySql: cfg = cfg.Database(MySQLConfiguration.Standard.ConnectionString(connectionString)); break; - } + case DBType.SQLite: + cfg = cfg.Database(SQLiteConfiguration.Standard.UsingFile(connectionString)); + break; + } cfg = cfg.Mappings(m => m.FluentMappings.AddFromAssemblyOf()); diff --git a/SharedDatabase/UsersDB.cs b/SharedDatabase/UsersDB.cs index 91547abdd..b279ddaa7 100644 --- a/SharedDatabase/UsersDB.cs +++ b/SharedDatabase/UsersDB.cs @@ -60,13 +60,13 @@ namespace SharedDatabase switch (dbType) { default: - case Common.DBType.SQLite: - cfg = cfg.Database(SQLiteConfiguration.Standard.UsingFile(connectionString)); - break; case Common.DBType.MySql: cfg = cfg.Database(MySQLConfiguration.Standard.ConnectionString(connectionString)); break; - } + case Common.DBType.SQLite: + cfg = cfg.Database(SQLiteConfiguration.Standard.UsingFile(connectionString)); + break; + } cfg = cfg.Mappings(m => m.FluentMappings.AddFromAssemblyOf());