mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-22 20:13:41 +08:00
Synchronization code
This commit is contained in:
@@ -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; }
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user