Search code examples
model-view-controllerentity-frameworkmvvmmodelmvp

In MVC, MVP and MVVM the model could it be a collection of entities?


I try to understand what a Model is. I already read this answer.

In MVC, MVP and MVVM the model could it be a collection of entities?


Solution

  • Absolutely. A Model is all what describes a data used by business logic.

    Ofthen in MVVM Model is encapsulated by the appropriate ViewModel itself. You need to separate a Model layer from ViewModel in case when different models could be handled by a single ViewModel.