UmbracoVault icon indicating copy to clipboard operation
UmbracoVault copied to clipboard

Getting Heterogeneous Children / Ancestors / Descendents

Open technicallyerik opened this issue 8 years ago • 1 comments

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.

technicallyerik avatar Mar 31 '16 20:03 technicallyerik

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.

jaredswarts55 avatar Apr 05 '16 19:04 jaredswarts55