Browse Source

Synchronization code

pull/32/head
sunkaixuan 2 years ago
parent
commit
7f5e055f1e
  1. 1
      Src/Asp.NetCore2/SqlSugar/Abstract/ExecuteNavProvider/InsertNavProviderHelper.cs
  2. 12
      Src/Asp.NetCore2/SqlSugar/Entities/DeleteNavOptions.cs
  3. 1
      Src/Asp.NetCore2/SqlSugar/Interface/IQueryable.cs

1
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

12
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; }

1
Src/Asp.NetCore2/SqlSugar/Interface/IQueryable.cs

@ -255,6 +255,7 @@ namespace SqlSugar
string ToPivotJson<TColumn, TRow, TData>(Func<T, TColumn> columnSelector, Expression<Func<T, TRow>> rowSelector, Func<IEnumerable<T>, TData> dataSelector);
ISugarQueryable<T> SplitTable(Func<List<SplitTableInfo>,IEnumerable<SplitTableInfo>> getTableNamesFunc);
ISugarQueryable<T> SplitTable(DateTime beginTime,DateTime endTime);
ISugarQueryable<T> SplitTable();
}
public partial interface ISugarQueryable<T, T2> : ISugarQueryable<T>
{

Loading…
Cancel
Save