According to what I've seen in school Model classes should only contain data members/properties and no methods/behaviour. However, while designing my UML class diagram I'm seeing possible interfaces and abstract classes for my Model classes. So my question is:
In the model-view-viewmodel design, most of the domain specific logic and behaviour actually ends up in the model. This is called the domain model in domain-driven-design.
That domain code might be reused in several deployment units/applications/services in your business, so they are independent of the actual WPF application you are writing.
The viewmodel serves as the testable application-specific adapter and mediator for the view you are just writing so that
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With