Answer the question
In order to leave comments, you need to log in
Is it acceptable to create view models that have links to each other?
class ParentVM { ChildVM ChildVM }
class ChildVM { ParentVM ParentVM }
... var user = this.ParentVM.MoreParentVM.SignInVM.CurrentUser;
It turns out that you can wander into any VM from any other VM. I did it by analogy with DataModel and Entity. It's convenient, but is it right?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question