UmbracoVault
UmbracoVault copied to clipboard
Getting Heterogeneous Children / Ancestors / Descendents
It would be cool to be able to do something like:
Vault.Context.GetAncestors<BaseDocumentViewModel>()
Vault.Context.GetChildren<BaseDocumentViewModel>()
Vault.Context.GetDescendents<BaseDocumentViewModel>()
If you want to get a bunch of documents that inherit from the same document type and share the same base properties.
I have done this work in the BRAVO git. It even maps the explicit child so you can cast it later. I will look into getting that work integrated.