[성현모] DB 예외처리 추가, UI 사이즈 조정

This commit is contained in:
SHM
2025-09-02 11:50:01 +09:00
parent 2cb56154e5
commit 978e4faadc
13 changed files with 235 additions and 45 deletions

View File

@ -88,12 +88,12 @@ namespace Web.Tra.Services
{
var contextName = typeof(T).Name;
var findDB = provider.DBDictionary.Values.First(x => x.DBID == dbID);
if(findDB is not null)
if(provider.DBDictionary.TryGetValue(dbID, out var findDB) == true)
{
return provider?.GetDBContext<T>($"{findDB.DBName}");
}
return provider?.GetDBContext<T>(findDB.DBID);
}
LogXnet.WriteLine($"GetDBContext Error DBID:{dbID}", LogXLabel.Error);
return null;
}
}