Browse Source

Merge commit 'refs/pull/328/head' of https://gitee.com/zuohuaijun/Admin.NET into next

zuohuaijun 4 years ago
parent
commit
46545e119f
1 changed files with 2 additions and 2 deletions
  1. 2 2
      Admin.NET/Admin.NET.Core/SqlSugar/SqlSugarSetup.cs

+ 2 - 2
Admin.NET/Admin.NET.Core/SqlSugar/SqlSugarSetup.cs

@@ -1,4 +1,4 @@
-using DbType = SqlSugar.DbType;
+using DbType = SqlSugar.DbType;
 
 namespace Admin.NET.Core;
 
@@ -111,7 +111,7 @@ public static class SqlSugarSetup
                             Parameters = Newtonsoft.Json.JsonConvert.SerializeObject(u.Parameters),
                             Duration = u.Time == null ? 0 : (long)u.Time.Value.TotalMilliseconds
                         };
-                        await dbProvider.Insertable(LogDiff).ExecuteCommandAsync();
+                        await dbProvider.Insertable(LogDiff).AS().ExecuteCommandAsync();
                         Console.ForegroundColor = ConsoleColor.Red;
                         Console.WriteLine($"***差异日志开始***{ Environment.NewLine }{ Newtonsoft.Json.JsonConvert.SerializeObject(LogDiff) }{ Environment.NewLine }***差异日志结束***");
                     };