//---------------------------------------------------------------------------------------------
// 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>
    /// Product inventory information.
    ///</summary>
    public partial class ProductInventory
    {
        public ProductInventory()
        {
        }

        #region Properties

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

        ///<summary>
        /// Inventory location identification number. Foreign key to Location.LocationID. 
        ///</summary>
        public short LocationId  { get; set; }

        ///<summary>
        /// Storage compartment within an inventory location.
        ///</summary>
        public string Shelf  { get; set; }

        ///<summary>
        /// Storage container on a shelf in an inventory location.
        ///</summary>
        public byte Bin  { get; set; }

        ///<summary>
        /// Quantity of products in the inventory location.
        ///</summary>
        public short Quantity  { 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>
        /// Product object referenced by the field ProductId.
        ///</summary>
        public virtual Product ProductObject { get; set; }

        ///<summary>
        /// Location object referenced by the field LocationId.
        ///</summary>
        public virtual Location LocationObject { get; set; }

        #endregion
    }
}