-
Book Overview & Buying
-
Table Of Contents
WCF Multi-layer Services Development with Entity Framework - Fourth Edition
By :
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.
In the Solution Explorer, right-click on the LINQNorthwind solution.
Select Add | New Project... to add a new class library project named NorthwindBDO.
Rename the Class1.cs file to ProductBDO.cs. This will also change the class name and all related files in the project.
Add the following properties to this class:
ProductID
ProductName
QuantityPerUnit
UnitPrice
Discontinued
UnitsInStock
UnitsOnOrder
ReorderLevel
RowVersion
The following is the code list of the ProductBDO class:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace NorthwindBDO
{
public class ProductBDO
{
public int ProductID...
Change the font size
Change margin width
Change background colour