O'Reilly logo

Building Enterprise Applications with Windows® Presentation Foundation and the Model View ViewModel Pattern by Raffaele Garofalo

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

Sample Code: The Business Service Layer

Now that we have the Domain Model in place, and we know how to persist and retrieve the Domain Model from the database, we need a smart way to execute business logic rules against the Domain Model and to validate the Domain Entities using a specific set of Validation Rules.

For the validation process, the example CRM application will use the Enterprise Library 5.0; specifically, this example makes use of the VAB and C# generics to build a generic validator.

For Business Rules, the application uses Windows WF 4.0. You’ll also see how to create a simple FluentEngine that is able to run any workflow you want.

Data Validation with the Enterprise Library 5.0

The first step is to download the latest version of the ...

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