From 7f5e055f1e9815273249ccd6fa9a24e8bd6b4eda Mon Sep 17 00:00:00 2001 From: sunkaixuan <610262374@qq.com> Date: Mon, 1 May 2023 10:26:00 +0800 Subject: [PATCH] Synchronization code --- .../ExecuteNavProvider/InsertNavProviderHelper.cs | 1 + .../SqlSugar/Entities/DeleteNavOptions.cs | 12 +++++++----- Src/Asp.NetCore2/SqlSugar/Interface/IQueryable.cs | 1 + 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/Src/Asp.NetCore2/SqlSugar/Abstract/ExecuteNavProvider/InsertNavProviderHelper.cs b/Src/Asp.NetCore2/SqlSugar/Abstract/ExecuteNavProvider/InsertNavProviderHelper.cs index d8d038dfb..2f4b4ee44 100644 --- a/Src/Asp.NetCore2/SqlSugar/Abstract/ExecuteNavProvider/InsertNavProviderHelper.cs +++ b/Src/Asp.NetCore2/SqlSugar/Abstract/ExecuteNavProvider/InsertNavProviderHelper.cs @@ -188,6 +188,7 @@ namespace SqlSugar this._Context.Insertable(insertData) .IgnoreColumns(_RootOptions.IgnoreColumns) .InsertColumns(_RootOptions.InsertColumns) + .EnableDiffLogEventIF(_RootOptions.IsDiffLogEvent, _RootOptions.DiffLogBizData) .ExecuteCommand(); } else diff --git a/Src/Asp.NetCore2/SqlSugar/Entities/DeleteNavOptions.cs b/Src/Asp.NetCore2/SqlSugar/Entities/DeleteNavOptions.cs index f65d954c4..350074941 100644 --- a/Src/Asp.NetCore2/SqlSugar/Entities/DeleteNavOptions.cs +++ b/Src/Asp.NetCore2/SqlSugar/Entities/DeleteNavOptions.cs @@ -16,12 +16,14 @@ namespace SqlSugar { public string[] IgnoreColumns { get; set; } public string[] InsertColumns { get; set; } + public bool IsDiffLogEvent { get; set; } + public object DiffLogBizData { get; set; } } - public class InertNavRootOptions - { - public string[] IgnoreColumns { get; set; } - public string[] InsertColumns { get; set; } - } + //public class InertNavRootOptions + //{ + // public string[] IgnoreColumns { get; set; } + // public string[] InsertColumns { get; set; } + //} public class UpdateNavRootOptions { public string[] IgnoreColumns { get; set; } diff --git a/Src/Asp.NetCore2/SqlSugar/Interface/IQueryable.cs b/Src/Asp.NetCore2/SqlSugar/Interface/IQueryable.cs index d9c851aea..e5abcaf2a 100644 --- a/Src/Asp.NetCore2/SqlSugar/Interface/IQueryable.cs +++ b/Src/Asp.NetCore2/SqlSugar/Interface/IQueryable.cs @@ -255,6 +255,7 @@ namespace SqlSugar string ToPivotJson(Func columnSelector, Expression> rowSelector, Func, TData> dataSelector); ISugarQueryable SplitTable(Func,IEnumerable> getTableNamesFunc); ISugarQueryable SplitTable(DateTime beginTime,DateTime endTime); + ISugarQueryable SplitTable(); } public partial interface ISugarQueryable : ISugarQueryable {