/// <summary> /// Deprecated Method for adding a new object to the portfolios EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToportfolios(portfolio portfolio) { base.AddObject("portfolios", portfolio); }
/// <summary> /// Create a new portfolio object. /// </summary> /// <param name="userID">Initial value of the userID property.</param> /// <param name="tickerSymbol">Initial value of the tickerSymbol property.</param> /// <param name="quantity">Initial value of the quantity property.</param> /// <param name="averagePrice">Initial value of the averagePrice property.</param> /// <param name="pNL">Initial value of the pNL property.</param> public static portfolio Createportfolio(global::System.Guid userID, global::System.String tickerSymbol, global::System.Decimal quantity, global::System.Decimal averagePrice, global::System.Decimal pNL) { portfolio portfolio = new portfolio(); portfolio.userID = userID; portfolio.tickerSymbol = tickerSymbol; portfolio.quantity = quantity; portfolio.averagePrice = averagePrice; portfolio.pNL = pNL; return portfolio; }