//---------------------------------------------------------------------------------------------
// 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>
    /// Cross-reference table mapping sales orders to sales reason codes.
    ///</summary>
    public partial class SalesOrderReason
    {
        public SalesOrderReason()
        {
        }

        #region Properties

        public int SalesOrderId  { get; set; }

        public int SalesReasonId  { get; set; }

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

        #endregion

        #region Navigation Properties

        ///<summary>
        /// Parent SalesOrder object referenced by the field SalesOrderId.
        ///</summary>
        public virtual SalesOrder SalesOrderObject { get; set; }

        ///<summary>
        /// SalesReason object referenced by the field SalesReasonId.
        ///</summary>
        public virtual SalesReason SalesReasonObject { get; set; }

        #endregion
    }
}