/// <summary> /// Create a new Basket object. /// </summary> /// <param name="basketId">Initial value of the BasketId property.</param> /// <param name="isCheckedOut">Initial value of the IsCheckedOut property.</param> public static Basket CreateBasket(global::System.Int32 basketId, global::System.Boolean isCheckedOut) { Basket basket = new Basket(); basket.BasketId = basketId; basket.IsCheckedOut = isCheckedOut; return basket; }
/// <summary> /// Deprecated Method for adding a new object to the Baskets EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToBaskets(Basket basket) { base.AddObject("Baskets", basket); }