/// <summary>
 /// Create a new CurrencyRate object.
 /// </summary>
 /// <param name="currencyRateID">Initial value of the CurrencyRateID property.</param>
 /// <param name="currencyRateDate">Initial value of the CurrencyRateDate property.</param>
 /// <param name="fromCurrencyCode">Initial value of the FromCurrencyCode property.</param>
 /// <param name="toCurrencyCode">Initial value of the ToCurrencyCode property.</param>
 /// <param name="averageRate">Initial value of the AverageRate property.</param>
 /// <param name="endOfDayRate">Initial value of the EndOfDayRate property.</param>
 /// <param name="modifiedDate">Initial value of the ModifiedDate property.</param>
 public static CurrencyRate CreateCurrencyRate(global::System.Int32 currencyRateID, global::System.DateTime currencyRateDate, global::System.String fromCurrencyCode, global::System.String toCurrencyCode, global::System.Decimal averageRate, global::System.Decimal endOfDayRate, global::System.DateTime modifiedDate)
 {
     CurrencyRate currencyRate = new CurrencyRate();
     currencyRate.CurrencyRateID = currencyRateID;
     currencyRate.CurrencyRateDate = currencyRateDate;
     currencyRate.FromCurrencyCode = fromCurrencyCode;
     currencyRate.ToCurrencyCode = toCurrencyCode;
     currencyRate.AverageRate = averageRate;
     currencyRate.EndOfDayRate = endOfDayRate;
     currencyRate.ModifiedDate = modifiedDate;
     return currencyRate;
 }
 /// <summary>
 /// Deprecated Method for adding a new object to the CurrencyRates EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToCurrencyRates(CurrencyRate currencyRate)
 {
     base.AddObject("CurrencyRates", currencyRate);
 }