public OrderHeader(string number, DateTime orderDate, int itemQty, decimal total, Contact billToContact, Contact shipToContact, Address billToAddress, Address shipToAddress) { this._number = number; this._orderDate = orderDate; this._itemQty = itemQty; this._total = total; this._billToContact = billToContact; this._shipToContact = shipToContact; this._billToAddress = billToAddress; this._shipToAddress = shipToAddress; }
static void Main() { log4net.Config.XmlConfigurator.Configure(); SessionProvider.Instance.RegenerateSchema(); Contact contact1 = new Contact("Martha", "Washington", "*****@*****.**"); Contact contact2 = new Contact("Tom", "Washington", "*****@*****.**"); Contact contact3 = new Contact("Martha", "Wash", "*****@*****.**"); ContactDataControl.Instance.Save(contact1); ContactDataControl.Instance.Save(contact2); ContactDataControl.Instance.Save(contact3); IList<Contact> contacts = ContactDataControl.Instance.GetAll(); DisplayContacts(contacts); contacts = ContactDataControl.Instance.GetAll(new PagingAndSortingArguments(0, 1, string.Empty)); System.Console.WriteLine("-----------"); DisplayContacts(contacts); }