//---------------------------------------------------------------------------------------------
// 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>
    /// Sales representative transfers to other sales territories.
    ///</summary>
    public partial class SalesTerritoryHistory
    {
        public SalesTerritoryHistory()
        {
        }

        #region Properties

        ///<summary>
        /// Primary key. The sales rep.  Foreign key to SalesPerson.BusinessEntityID.
        ///</summary>
        public int BusinessEntityId  { get; set; }

        ///<summary>
        /// Primary key. Date the sales representive started work in the territory.
        ///</summary>
        public DateTime StartDate  { get; set; }

        ///<summary>
        /// Primary key. Territory identification number. Foreign key to SalesTerritory.SalesTerritoryID.
        ///</summary>
        public int TerritoryId  { get; set; }

        ///<summary>
        /// Date the sales representative left work in the territory.
        ///</summary>
        public DateTime? EndDate  { 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>
        /// SalesPerson object referenced by the field BusinessEntityId.
        ///</summary>
        public virtual SalesPerson BusinessEntityObject { get; set; }

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

        #endregion
    }
}