using System; using System.Collections; namespace Northwind.Domain.Entities { /// <summary> /// Shipper object for NHibernate mapped table 'Shippers'. /// </summary> public class Shipper : EntityBase { #region Member Variables protected int _id; protected string _companyName; protected string _phone; protected IList _shipViaOrderses; #endregion #region Constructors public Shipper() { } public Shipper( string companyName, string phone ) { this._companyName = companyName; this._phone = phone; } #endregion #region Public Properties public int Id { get {return _id;} set {_id = value;} } public string CompanyName { get { return _companyName; } set { if(value != _companyName) IsModified = true; _companyName = value; } } public string Phone { get { return _phone; } set { if(value != _phone) IsModified = true; _phone = value; } } public IList ShipViaOrderses { get { if (_shipViaOrderses==null) { _shipViaOrderses = new ArrayList(); } return _shipViaOrderses; } set { _shipViaOrderses = value; } } #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)