Browse Source

Update InsertNav

pull/32/head
sunkaixuan 2 years ago
parent
commit
6afe01fa64
  1. 1
      Src/Asp.Net/SqlSugar/Abstract/ExecuteNavProvider/InsertNavProviderHelper.cs
  2. 14
      Src/Asp.Net/SqlSugar/Entities/DeleteNavOptions.cs

1
Src/Asp.Net/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

14
Src/Asp.Net/SqlSugar/Entities/DeleteNavOptions.cs

@ -11,17 +11,21 @@ namespace SqlSugar
{
public bool ManyToManyIsDeleteA { get; set; }
public bool ManyToManyIsDeleteB { get; set; }
public bool IsDiffLogEvent { get; set; }
public object DiffLogBizData { get; set; }
}
public class InsertNavRootOptions
{
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; }

Loading…
Cancel
Save