You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think this line needs to change to: public SqlHierarchyId GetDescendant(SqlHierarchyId child1, SqlHierarchyId child2) => new SqlHierarchyId(_imp.GetDescendant(child1.IsNull ? default(HierarchyId?) : child1._imp, child2.IsNull ? default(HierarchyId?) : child2._imp));
Otherwise, you can't create the first child. Unless I'm missing something...
The text was updated successfully, but these errors were encountered:
This is what I used. Simple enough:
`
[Fact]
public void InsertFirstChild()
{
SqlHierarchyId id = Types.SqlHierarchyId.GetRoot();
SqlHierarchyId idChild = id.GetDescendant(Types.SqlHierarchyId.Null, Types.SqlHierarchyId.Null);
I think this line needs to change to:
public SqlHierarchyId GetDescendant(SqlHierarchyId child1, SqlHierarchyId child2) => new SqlHierarchyId(_imp.GetDescendant(child1.IsNull ? default(HierarchyId?) : child1._imp, child2.IsNull ? default(HierarchyId?) : child2._imp));
Otherwise, you can't create the first child. Unless I'm missing something...
The text was updated successfully, but these errors were encountered: