/// <summary> /// Create a new CurrencyRate object. /// </summary> /// <param name="id">Initial value of the Id property.</param> /// <param name="currencyId">Initial value of the CurrencyId property.</param> /// <param name="buy">Initial value of the Buy property.</param> /// <param name="sell">Initial value of the Sell property.</param> /// <param name="issueDate">Initial value of the IssueDate property.</param> /// <param name="currencyIdReference">Initial value of the CurrencyIdReference property.</param> /// <param name="userId">Initial value of the UserId property.</param> public static CurrencyRate CreateCurrencyRate(global::System.Int32 id, global::System.Int32 currencyId, global::System.Double buy, global::System.Double sell, global::System.DateTime issueDate, global::System.Int32 currencyIdReference, global::System.Int32 userId) { CurrencyRate currencyRate = new CurrencyRate(); currencyRate.Id = id; currencyRate.CurrencyId = currencyId; currencyRate.Buy = buy; currencyRate.Sell = sell; currencyRate.IssueDate = issueDate; currencyRate.CurrencyIdReference = currencyIdReference; currencyRate.UserId = userId; return currencyRate; }
/// <summary> /// Deprecated Method for adding a new object to the CurrencyRates EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToCurrencyRates(CurrencyRate currencyRate) { base.AddObject("CurrencyRates", currencyRate); }