Skip to content

Commit c2fe617

Browse files
authored
Update CollectionGraphNode.cs
1 parent ea088de commit c2fe617

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

GraphDiff/GraphDiff/Internal/Graph/CollectionGraphNode.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,11 @@ public override void Update<T>(DbContext context, T existing, T entity)
5858

5959
private static bool CheckAllowDelete(GraphNode node)
6060
{
61-
if (node.AllowDelete != null)
61+
if (node.AllowDelete.HasValue)
6262
{
63-
return (bool)node.AllowDelete;
63+
return node.AllowDelete.Value;
6464
}
65-
else if (node.Parent != null)
65+
else if (node.Parent.HasValue)
6666
{
6767
return CheckAllowDelete(node.Parent);
6868
}

0 commit comments

Comments
 (0)