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 domain object project

In Chapter 4, Implementing a WCF Service in the Real World, we created a business domain object (BDO) project to hold the intermediate data between the data access objects and the service interface objects. In this section, we will also add such a project to the solution for the same purpose.

  1. In the Solution Explorer, right-click on the LINQNorthwind solution.
  2. Select Add | New Project... to add a new class library project named LINQNorthwindBDO.
  3. Delete the Class1.cs file.
  4. Add a new class file ProductBDO.cs.
  5. Change the new class ProductBDO to be public.
  6. Add the following properties to this class:
    • ProductID
    • ProductName
    • QuantityPerUnit
    • UnitPrice
    • Discontinued
    • UnitsInStock
    • UnitsOnOrder
    • ReorderLevel
    • RowVersion

The following ...

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