mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2025-09-20 10:37:55 +08:00
fix #I95QYW pg数据库,启动时提示表名不存在
This commit is contained in:
@@ -35,6 +35,10 @@ namespace OpenAuth.App
|
||||
|
||||
public T Get(string id)
|
||||
{
|
||||
if (SugarClient.CurrentConnectionConfig.DbType == DbType.PostgreSQL)
|
||||
{
|
||||
return SugarClient.Queryable<T>().Where("\"Id\"=@id", new {id = id}).First();
|
||||
}
|
||||
return SugarClient.Queryable<T>().Where("Id=@id", new {id = id}).First();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user