增加对sql只返回string的支持;

修复添加表单时,如果关联的数据库已存在的bug
This commit is contained in:
yubaolee
2022-01-19 15:49:29 +08:00
parent 636624a872
commit 99daa8752f
10 changed files with 352 additions and 139 deletions

View File

@@ -204,6 +204,7 @@ namespace OpenAuth.Repository
public int ExecuteSql(string sql)
{
if (string.IsNullOrEmpty(sql)) return 0;
return _context.Database.ExecuteSqlRaw(sql);
}