mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-04-29 01:47:06 +08:00
Update Nav Update One To Many
This commit is contained in:
parent
f2e245b3c1
commit
0e383c24f3
@ -42,6 +42,10 @@ namespace SqlSugar
|
|||||||
children.AddRange(childs);
|
children.AddRange(childs);
|
||||||
}
|
}
|
||||||
ids.Add(parentValue);
|
ids.Add(parentValue);
|
||||||
|
if (_Options?.OneToManyNoDeleteNull == true && childs == null)
|
||||||
|
{
|
||||||
|
ids.Remove(parentValue);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (NotAny(name))
|
if (NotAny(name))
|
||||||
{
|
{
|
||||||
|
@ -49,6 +49,7 @@ namespace SqlSugar
|
|||||||
public bool ManyToManyEnableLogicDelete { get; set; }
|
public bool ManyToManyEnableLogicDelete { get; set; }
|
||||||
public bool OneToManyDeleteAll { get; set; }
|
public bool OneToManyDeleteAll { get; set; }
|
||||||
public bool OneToManyEnableLogicDelete { get; set; }
|
public bool OneToManyEnableLogicDelete { get; set; }
|
||||||
|
public bool OneToManyNoDeleteNull { get; set; }
|
||||||
public Expression RootFunc { get; set; }
|
public Expression RootFunc { get; set; }
|
||||||
public Expression CurrentFunc { get; set; }
|
public Expression CurrentFunc { get; set; }
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user