Month: September 2009

Build enterprise application with WPF, WCF, Entity Framework and Prism. Tutorial 01.

Update: source code and documentation are now available on CodePlex at this address: http://prismtutorial.codeplex.com/

In these series of articles I will show you how to build an enterprise application using the most recent Microsoft’s technologies like: WPF with PRISM for the UI, Entity Framework for the Data Layer and WCF for the persistence service.

Specifications.

We will build a 3 tiers application that will spread the responsibility through 3 different machines (virtually because the Visual Studio solution is only one).

  1. SQL Server
    It will contain the database and the database objects
  2. IIS 7
    Data access layer with Entity Framework
    WCF host service for the persistence
    WCF host service for the security access
  3. PRISM (Composite WPF application)
    This layer will use the PRISM pattern to render a WPF modular application

This is the schema of our tiers:

image

Prerequisites and Source code.

As I did for my previous series of post about MVVM and WPF, I will share a CodePlex project for anyone of you that want to reuse the project for professional or testing purposes, I will use the Adventure works database available in the CodePlex web site and I will use the PRISM pattern.

Prerequisites:

  1. Visual Studio 2008 with SP1 available for trial on Microsoft web site.
  2. NET 3.5 SP1 available on MSDN.
  3. SQL Server 2008 Express Edition.

As we are going to use some very well known patterns and methodologies, like: Factory pattern, Inversion of Control, POCO objects, Test Driven Development; I suggest to anyone of you to have a look at:

  1. Martin Fowler articles and patterns.
  2. Gang of Four NET patterns.
  3. Composite UI Application for Silverlight and WPF.
  4. At least, basic knowledge of XAML syntax and how WPF works.

Those are part of the patterns and methodologies we will use. It is not mandatory to know them but if you have at least a look, it will be easier to follow the next articles.

For today it’s enough, be ready with your PC and from the next article we will start to build the database and the Data access layer.

Tags: