Take a look at the following OrderHeader table. We need to map the Number, OrderDate, ItemQty, and Total fields into our OrderHeader
class.
Open the
OrderHeader
class we created in Chapter 3. This will be eitherOrderHeader.cs
orOrderHeader.vb
. We will use this file for reference while we create our mapping document. Your class should look as follows:using System; using System.Collections.Generic; using System.Text; namespace Ordering.Data { public class OrderHeader { #region Constructors public OrderHeader() { } public OrderHeader(string Number, DateTime OrderDate, int ItemQty, decimal Total, Contact BillToContact, Contact ShipToContact, Address BillToAddress, Address ShipToAddress): this() { this.Number = Number; this.OrderDate = OrderDate; this.ItemQty = ItemQty; this.Total = Total; this.BillToContact = BillToContact; this.ShipToContact = ShipToContact; this.BillToAddress...