//---------------------------------------------------------------------------------------------
// 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>
    /// Individual products associated with a specific sales order. See SalesOrderHeader.
    ///</summary>
    public partial class SalesOrderDetail
    {
        public SalesOrderDetail()
        {
        }

        #region Properties

        public int SalesOrderId  { get; set; }

        public int SalesOrderDetailId  { get; set; }

        ///<summary>
        /// Shipment tracking number supplied by the shipper.
        ///</summary>
        public string CarrierTrackingNumber  { get; set; }

        ///<summary>
        /// Quantity ordered per product.
        ///</summary>
        public short OrderQty  { get; set; }

        ///<summary>
        /// Primary key for SpecialOfferProduct records.
        ///</summary>
        public int SpecialOfferId  { get; set; }

        ///<summary>
        /// Product identification number. Foreign key to Product.ProductID.
        ///</summary>
        public int ProductId  { get; set; }

        ///<summary>
        /// Selling price of a single product.
        ///</summary>
        public decimal UnitPrice  { get; set; }

        ///<summary>
        /// Discount amount.
        ///</summary>
        public decimal UnitPriceDiscount  { get; set; }

        ///<summary>
        /// Per product subtotal. Computed as UnitPrice * (1 - UnitPriceDiscount) * OrderQty.
        ///</summary>
        public decimal LineTotal  { 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>
        /// Parent SalesOrder object referenced by the field SalesOrderId.
        ///</summary>
        public virtual SalesOrder SalesOrderObject { get; set; }

        ///<summary>
        /// SpecialOfferProduct object referenced by the fields SpecialOfferId, ProductId.
        ///</summary>
        public virtual SpecialOfferProduct SpecialOfferProductObject { get; set; }

        #endregion
    }
}