//---------------------------------------------------------------------------------------------
// 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>
    /// Telephone number and type of a person.
    ///</summary>
    public partial class PersonPhone
    {
        public PersonPhone()
        {
        }

        #region Properties

        ///<summary>
        /// Business entity identification number. Foreign key to Person.BusinessEntityID.
        ///</summary>
        public int BusinessEntityId  { get; set; }

        ///<summary>
        /// Telephone number identification number.
        ///</summary>
        public string PhoneNumber  { get; set; }

        ///<summary>
        /// Kind of phone number. Foreign key to PhoneNumberType.PhoneNumberTypeID.
        ///</summary>
        public int PhoneNumberTypeId  { get; set; }

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

        #endregion

        #region Navigation Properties

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

        ///<summary>
        /// PhoneNumberType object referenced by the field PhoneNumberTypeId.
        ///</summary>
        public virtual PhoneNumberType PhoneNumberTypeObject { get; set; }

        #endregion
    }
}