mirror of
https://github.com/EggLinks/DanhengServer-OpenSource.git
synced 2026-01-02 20:26:03 +08:00
fix database initialization
This commit is contained in:
@@ -189,13 +189,10 @@ namespace EggLink.DanhengServer.Database
|
||||
{
|
||||
try
|
||||
{
|
||||
sqlSugarScope?.Queryable<T>()
|
||||
.Select(x => x)
|
||||
.ToList();
|
||||
sqlSugarScope?.CodeFirst.InitTables<T>();
|
||||
}
|
||||
catch
|
||||
{
|
||||
sqlSugarScope?.CodeFirst.InitTables<T>();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user