Creating the business domain object project

In Chapter 5, Implementing a Three-layer WCF Service, 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 NorthwindBDO.
  3. Rename the Class1.cs file to ProductBDO.cs. This will also change the class name and all related files in the project.
  4. Add the following properties to this class:
    • ProductID
    • ProductName
    • QuantityPerUnit
    • UnitPrice
    • Discontinued
    • UnitsInStock
    • UnitsOnOrder
    • ReorderLevel
    • RowVersion

The following ...

Get WCF Multi-layer Services Development with Entity Framework Fourth Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.