//---------------------------------------------------------------------------------------------
// 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 customers, vendors, and employees to their addresses.
    ///</summary>
    public partial class BusinessEntityAddress
    {
        public BusinessEntityAddress()
        {
        }

        #region Properties

        ///<summary>
        /// Primary key. Foreign key to BusinessEntity.BusinessEntityID.
        ///</summary>
        public int BusinessEntityId  { get; set; }

        ///<summary>
        /// Primary key. Foreign key to Address.AddressID.
        ///</summary>
        public int AddressId  { get; set; }

        ///<summary>
        /// Primary key. Foreign key to AddressType.AddressTypeID.
        ///</summary>
        public int AddressTypeId  { 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>
        /// BusinessEntity object referenced by the field BusinessEntityId.
        ///</summary>
        public virtual BusinessEntity BusinessEntityObject { get; set; }

        ///<summary>
        /// Address object referenced by the field AddressId.
        ///</summary>
        public virtual Address AddressObject { get; set; }

        ///<summary>
        /// AddressType object referenced by the field AddressTypeId.
        ///</summary>
        public virtual AddressType AddressTypeObject { get; set; }

        #endregion
    }
}