using System.Collections.Generic; namespace VmWrapperDemo.Domain { public class Customer { #region Constructors /// <summary> /// Default constructor /// </summary> public Customer() { } /// <summary> /// Property-setting constructor. /// </summary> /// <param name="name">The customer's name.</param> /// <param name="contact">The name of the contact person at the customer.</param> public Customer(string name, string contact) { this.Name = name; this.Contact = contact; this.Orders = new List<Order>(); } #endregion #region Properties /// <summary> /// The name of the contact person at the customer. /// </summary> public string Contact { get; set; } /// <summary> /// The customer's name. /// </summary> public string Name { get; set; } /// <summary> /// Orders placed by the customer. /// </summary> public IList<Order> Orders { get; set; } #endregion } }
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.
This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)