Update updateNav

This commit is contained in:
sunkaixuan
2022-11-13 14:49:56 +08:00
parent e5d9894feb
commit 7603ff1097
2 changed files with 9 additions and 1 deletions

View File

@@ -63,7 +63,14 @@ namespace SqlSugar
{
Check.ExceptionEasy($"{name} no navigate attribute", $"{this._ParentEntity.EntityName}的属性{name}没有导航属性");
}
UpdateRoot(isRoot, nav);
if (_RootOptions != null && _RootOptions.IsDisableUpdateRoot)
{
//Future
}
else
{
UpdateRoot(isRoot, nav);
}
IsFirst = false;
if (nav.Navigat.NavigatType == NavigateType.OneToOne || nav.Navigat.NavigatType == NavigateType.ManyToOne)
{

View File

@@ -27,6 +27,7 @@ namespace SqlSugar
public string[] IgnoreColumns { get; set; }
public string[] UpdateColumns { get; set; }
public bool IsInsertRoot { get; set; }
public bool IsDisableUpdateRoot { get; set; }
public bool IsDiffLogEvent { get; set; }
public object DiffLogBizData { get; set; }
}