/// <summary>
 /// Create a new FactCurrencyRate object.
 /// </summary>
 /// <param name="currencyKey">Initial value of the CurrencyKey property.</param>
 /// <param name="dateKey">Initial value of the DateKey property.</param>
 /// <param name="averageRate">Initial value of the AverageRate property.</param>
 /// <param name="endOfDayRate">Initial value of the EndOfDayRate property.</param>
 public static FactCurrencyRate CreateFactCurrencyRate(global::System.Int32 currencyKey, global::System.Int32 dateKey, global::System.Double averageRate, global::System.Double endOfDayRate)
 {
     FactCurrencyRate factCurrencyRate = new FactCurrencyRate();
     factCurrencyRate.CurrencyKey = currencyKey;
     factCurrencyRate.DateKey = dateKey;
     factCurrencyRate.AverageRate = averageRate;
     factCurrencyRate.EndOfDayRate = endOfDayRate;
     return factCurrencyRate;
 }
 /// <summary>
 /// Deprecated Method for adding a new object to the FactCurrencyRates EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToFactCurrencyRates(FactCurrencyRate factCurrencyRate)
 {
     base.AddObject("FactCurrencyRates", factCurrencyRate);
 }