-
Notifications
You must be signed in to change notification settings - Fork 347
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add the notion of "Parent" to pocos #2895
Comments
We used this scratch code during our discussions: interface IScopedNode
{
string Name;
IEnumerable<object> Children()
}
class Base : IScopedNode
{
virtual IScopedNode.Children()
{
foreach(child c in ....)
{
c._parent = this;
yield c;
}
}
IScopedNode AsRootNode()
this._parent = null;
return (IScopedNode)this;
}
}
var p = new Patient() { .... };
var isn = p.AsScopedNode();
var namex = isn.Select("resolve()").First(); |
This is part of #2910, and I consider this design done. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Or whatever is necessary to implement the new interface #2894.
The text was updated successfully, but these errors were encountered: