Update InsertNav

This commit is contained in:
sunkaixuan 2023-05-01 10:18:49 +08:00
parent a7135ffa7f
commit 6afe01fa64
2 changed files with 10 additions and 5 deletions

View File

@ -188,6 +188,7 @@ namespace SqlSugar
this._Context.Insertable(insertData)
.IgnoreColumns(_RootOptions.IgnoreColumns)
.InsertColumns(_RootOptions.InsertColumns)
.EnableDiffLogEventIF(_RootOptions.IsDiffLogEvent, _RootOptions.DiffLogBizData)
.ExecuteCommand();
}
else

View File

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