瀏覽代碼

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

zuohuaijun 3 年之前
父節點
當前提交
bd093bb6ad
共有 1 個文件被更改,包括 3 次插入2 次删除
  1. 3 2
      Admin.NET/Admin.NET.Web.Entry/wwwroot/Template/Service.cs.vm

+ 3 - 2
Admin.NET/Admin.NET.Web.Entry/wwwroot/Template/Service.cs.vm

@@ -1,4 +1,4 @@
-using Furion.DependencyInjection;
+using Furion.DependencyInjection;
 using Furion.DynamicApiController;
 using Mapster;
 using Microsoft.AspNetCore.Mvc;
@@ -111,7 +111,8 @@ if (@column.ColumnKey == "True"){
             @:var entity = await _rep.GetFirstAsync(u => u.@(@column.ColumnName) == input.@(@column.ColumnName));
 }
 }
-            await _rep.DeleteAsync(entity);
+            await _rep.Context.Updateable(entity).FakeDelete().ExecuteCommandAsync();   //假删除
+            //await _rep.DeleteAsync(entity);   //真删除
         }
 
         /// <summary>