O'Reilly logo

WCF 4.5 Multi-Layer Services Development with Entity Framework by Mike Liu

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

Creating the business logic layer

Now let's create the business logic layer. The steps here are very similar to the steps in Chapter 4, Implementing a WCF Service in the Real World, so you can refer to that chapter for more details.

  1. Right click on the solution item and select Add | New Project.... Add a class library project with the name LINQNorthwindLogic.
  2. Add a project reference to LINQNorthwindDAL and LINQNorthwindBDO to this new project.
  3. Delete the Class1.cs file.
  4. Add a new class file ProductLogic.cs.
  5. Change the new class ProductLogic to be public.
  6. Add the following two using statements to the ProductLogic.cs class file:
    using LINQNorthwindDAL;
    using LINQNorthwindBDO;
  7. Add the following class member variable to the ProductLogic class:
    ProductDAO productDAO ...

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