Default database type is DBType.MySql.

This commit is contained in:
Milan Hanajik
2022-04-05 12:16:17 +02:00
parent f20acf0e11
commit f3a61411f5
3 changed files with 12 additions and 12 deletions
+4 -4
View File
@@ -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<Entities.Event>());