UserManagement fixed : DbType = DBType.MySql

This commit is contained in:
Milan Hanajik
2022-04-05 10:13:28 +02:00
parent 2a26da6337
commit 96a86a04da
5 changed files with 14 additions and 13 deletions
+4 -4
View File
@@ -61,13 +61,13 @@ namespace Users
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.User>());