//---------------------------------------------------------------------------------------------
// 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 ISO currency codes to a country or region.
    ///</summary>
    public partial class CountryRegionCurrency
    {
        public CountryRegionCurrency()
        {
        }

        #region Properties

        ///<summary>
        /// ISO code for countries and regions. Foreign key to CountryRegion.CountryRegionCode.
        ///</summary>
        public string CountryRegionCode  { get; set; }

        ///<summary>
        /// ISO standard currency code. Foreign key to Currency.CurrencyCode.
        ///</summary>
        public string CurrencyCode  { get; set; }

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

        #endregion

        #region Navigation Properties

        ///<summary>
        /// CountryRegion object referenced by the field CountryRegionCode.
        ///</summary>
        public virtual CountryRegion CountryRegionCodeObject { get; set; }

        ///<summary>
        /// Currency object referenced by the field CurrencyCode.
        ///</summary>
        public virtual Currency CurrencyCodeObject { get; set; }

        #endregion
    }
}