//---------------------------------------------------------------------------------------------
// This file was AUTO-GENERATED by "EF Domain Objects" Xomega.Net generator.
//
// Manual CHANGES to this file WILL BE LOST when the code is regenerated.
//---------------------------------------------------------------------------------------------

using System;

namespace AdventureWorks.Services.Entities
{
    ///<summary>
    /// Current customer information. Also see the Person and Store tables.
    ///</summary>
    public partial class Customer
    {
        public Customer()
        {
        }

        #region Properties

        public int CustomerId  { get; set; }

        ///<summary>
        /// Foreign key to Person.BusinessEntityID
        ///</summary>
        public int? PersonId  { get; set; }

        ///<summary>
        /// Foreign key to Store.BusinessEntityID
        ///</summary>
        public int? StoreId  { get; set; }

        ///<summary>
        /// ID of the territory in which the customer is located. Foreign key to SalesTerritory.SalesTerritoryID.
        ///</summary>
        public int? TerritoryId  { get; set; }

        ///<summary>
        /// Unique number identifying the customer assigned by the accounting system.
        ///</summary>
        public string AccountNumber  { get; set; }

        ///<summary>
        /// ROWGUIDCOL number uniquely identifying the record. Used to support a merge replication sample.
        ///</summary>
        public Guid Rowguid  { get; set; }

        ///<summary>
        /// Date and time the record was last updated.
        ///</summary>
        public DateTime ModifiedDate  { get; set; }

        #endregion

        #region Navigation Properties

        ///<summary>
        /// Person object referenced by the field PersonId.
        ///</summary>
        public virtual Person PersonObject { get; set; }

        ///<summary>
        /// Store object referenced by the field StoreId.
        ///</summary>
        public virtual Store StoreObject { get; set; }

        ///<summary>
        /// SalesTerritory object referenced by the field TerritoryId.
        ///</summary>
        public virtual SalesTerritory TerritoryObject { get; set; }

        #endregion
    }
}