/// <summary> /// Deprecated Method for adding a new object to the ExchangeRates EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToExchangeRates(ExchangeRate exchangeRate) { base.AddObject("ExchangeRates", exchangeRate); }
/// <summary> /// Create a new ExchangeRate object. /// </summary> /// <param name="id">Initial value of the Id property.</param> /// <param name="currencyCode">Initial value of the CurrencyCode property.</param> /// <param name="rate">Initial value of the Rate property.</param> public static ExchangeRate CreateExchangeRate(global::System.Int32 id, global::System.String currencyCode, global::System.Decimal rate) { ExchangeRate exchangeRate = new ExchangeRate(); exchangeRate.Id = id; exchangeRate.CurrencyCode = currencyCode; exchangeRate.Rate = rate; return exchangeRate; }