Mango Sample: MVVM

imageThe Model View View-Model pattern is intended for applications that have State, like a Silverlight application. There are 3 parts:

  1. The Model
  2. The View
  3. The View-Model

The Model

The Model is your database object. If you are using SQL Server and have a Products table, then your Products table is your Model. It’s that simple.

The View

The View is your database entity. If you are using the Entity Framework and have a Products class, then your Products class is your View. It’s that simple.

The View-Model

The View-Model is not a combination of your View and Model. Instead, it is a combination of two things: 1) one or more Views, and 2) the logic to interact with your Models.

Read the rest of the article here.

Comments (0)

Skip to main content