O'Reilly logo

MVVM Survival Guide for Enterprise Architectures in Silverlight and WPF by Muhammad Shujaat Siddiqi, Ryan Vice

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Persistence ignorance and custom models

So far, we have used generated classes as our models. We will now look at creating a custom model and will add persistence ignorance to our design.

Trade-offs of generated models

The Microsoft technology stack provides plenty of solutions that allow for getting up and running with models that support change notifications via INotifyPropertyChanged. As with everything in software development, there are trade-offs to be considered when determining what type of architecture you need; the advantages and disadvantages of using generated models are shown as follows:

Advantages

Disadvantages

Quick to develop

Couples Presentation with data access

Models are generated for you

Changing data access requires difficult ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required