//---------------------------------------------------------------------------------------------
// 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>
    /// Companies from whom Adventure Works Cycles purchases parts or other goods.
    ///</summary>
    public partial class Vendor
    {
        public Vendor()
        {
        }

        #region Properties

        public int BusinessEntityId  { get; set; }

        ///<summary>
        /// Vendor account (identification) number.
        ///</summary>
        public string AccountNumber  { get; set; }

        ///<summary>
        /// Company name.
        ///</summary>
        public string Name  { get; set; }

        ///<summary>
        /// 1 = Superior, 2 = Excellent, 3 = Above average, 4 = Average, 5 = Below average
        ///</summary>
        public byte CreditRating  { get; set; }

        ///<summary>
        /// 0 = Do not use if another vendor is available. 1 = Preferred over other vendors supplying the same product.
        ///</summary>
        public bool PreferredVendorStatus  { get; set; }

        ///<summary>
        /// 0 = Vendor no longer used. 1 = Vendor is actively used.
        ///</summary>
        public bool ActiveFlag  { get; set; }

        ///<summary>
        /// Vendor URL.
        ///</summary>
        public string PurchasingWebServiceUrl  { get; set; }

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

        #endregion

        #region Navigation Properties

        ///<summary>
        /// BusinessEntity object referenced by the field BusinessEntityId.
        ///</summary>
        public virtual BusinessEntity BusinessEntityObject { get; set; }

        #endregion
    }
}