Search code examples
silverlightmvvmsilverlight-5.0

Where does business logic sit in MVVM?


I am used to developing with N-Tier architecture, i.e. Data Access Layer, Business Logic Layer, etc

Can anyone provide any advice or links about the best location for my business logic?

Do I put all of this into classes within the Models folder of my Silverlight application?

Paul


Solution

  • Business logic, as well as the data, is typically part of the Model layer in MVVM. The View is the visuals, and the ViewModel is the "glue" that lets you work with the business specific logic and data.

    Anything that's specific to the domain or business should be reusable by other applications, using other architectures.