/// <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="countryCode">Initial value of the CountryCode property.</param> /// <param name="rateTime">Initial value of the RateTime property.</param> /// <param name="exchangeRate1">Initial value of the ExchangeRate1 property.</param> /// <param name="hTMLCurrencyCode">Initial value of the HTMLCurrencyCode property.</param> public static ExchangeRate CreateExchangeRate(global::System.String countryCode, global::System.DateTime rateTime, global::System.Double exchangeRate1, global::System.String hTMLCurrencyCode) { ExchangeRate exchangeRate = new ExchangeRate(); exchangeRate.CountryCode = countryCode; exchangeRate.RateTime = rateTime; exchangeRate.ExchangeRate1 = exchangeRate1; exchangeRate.HTMLCurrencyCode = hTMLCurrencyCode; return exchangeRate; }