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

Sunday, September 20, 2009 4:29 PM | Leave a reply »

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:


Comments

  1. Gravatar Min Soe says:

    Re : # re: Build enterprise application with WPF, WCF, Entity Framework and Prism. Tutorial 01.

    I love your previous tutorials about MVVM and I believe I will like this series. I'm looking forward to it. I'm trying to write a Point of Sale application using WPF MVVM for general retail shops.
  2. Gravatar raffaeu says:

    Re : # re: Build enterprise application with WPF, WCF, Entity Framework and Prism. Tutorial 01.

    Thank you. Actually I am out of the island for business but this week end I will publish the data layer article. So stay tuned.
  3. Gravatar Martin says:

    Re : # re: Build enterprise application with WPF, WCF, Entity Framework and Prism. Tutorial 01.

    I really enjoyed the WPF MVVM tutorial, when will you continue this one, looking forward to it.
    Thanks appreciate your help in these tutorial.
  4. Re : # re: Build enterprise application with WPF, WCF, Entity Framework and Prism. Tutorial 01.

    I am just starting in these days the rewrite of an application that has the same architecture of what you are proposing. I am still deciding to use or not PRISM for the UI, as I don't really need the modularity.

    What are you going to use to communicate with WCF, DTOs or Entities?
  5. Gravatar alin says:

    Re : # re: Build enterprise application with WPF, WCF, Entity Framework and Prism. Tutorial 01.

    I am very interested of this tutorial. Is exactly what I want to learn ad I am a new comer to the DDD world. I will look for its development. Great work with this blog !
  6. Gravatar BigDick says:

    Re : # re: Build enterprise application with WPF, WCF, Entity Framework and Prism. Tutorial 01.

    Where is another parts?
  7. Gravatar raffaeu says:

    Re : # re: Build enterprise application with WPF, WCF, Entity Framework and Prism. Tutorial 01.

    I am very sorry guys but this week-end we moved to the new house and I didn't have time to publish anything. I am going to publish the next series and the CodePlex project soon.
    Stay tuned!
  8. Gravatar Jan says:

    Re : # re: Build enterprise application with WPF, WCF, Entity Framework and Prism. Tutorial 01.

    I'm eagerly awaiting the next parts. I'm starting on a new project and want to use PRISM/WPF on the client, WCF for communication to the server and nHibernate as DAL on the server for the database.
  9. Gravatar Bob says:

    Re : # re: Build enterprise application with WPF, WCF, Entity Framework and Prism. Tutorial 01.

    Never mind. found it under the "Source Code" link.
  10. Gravatar bath mate says:

    Re : # bathmate


    thanks for your great posting


    Bathmate
  11. Re : # The Model View Presenter pattern with .NET.

    The Model View Presenter pattern with .NET.
Comments have been closed on this topic.