/// <summary> /// Create a new Cart object. /// </summary> /// <param name="id">Initial value of the Id property.</param> /// <param name="totalCost">Initial value of the TotalCost property.</param> public static Cart CreateCart(global::System.Int32 id, global::System.Double totalCost) { Cart cart = new Cart(); cart.Id = id; cart.TotalCost = totalCost; return cart; }
/// <summary> /// Deprecated Method for adding a new object to the Carts EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToCarts(Cart cart) { base.AddObject("Carts", cart); }