修复dataprotection

This commit is contained in:
yubaolee 2024-11-29 17:37:36 +08:00 committed by wintel
commit 8fb2e9d529

View File

@ -97,8 +97,9 @@ namespace OpenAuth.Mvc
services.AddDbContext<OpenAuthDBContext>();
services.AddHttpClient();
services.AddDataProtection().PersistKeysToFileSystem(new DirectoryInfo(Configuration["DataProtection"]));
var sqlsugarTypes = UtilMethods.EnumToDictionary<SqlSugar.DbType>();
var dbType = sqlsugarTypes.FirstOrDefault(it =>
dbtypes.ToDictionary(u => u.Key, v => v.Value.ToLower()).ContainsValue(it.Key));