/// <summary> /// Deprecated Method for adding a new object to the UserCarts EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToUserCarts(UserCart userCart) { base.AddObject("UserCarts", userCart); }
/// <summary> /// Create a new UserCart object. /// </summary> /// <param name="userId">Initial value of the UserId property.</param> /// <param name="productId">Initial value of the ProductId property.</param> /// <param name="count">Initial value of the Count property.</param> public static UserCart CreateUserCart(global::System.Guid userId, global::System.Int32 productId, global::System.Int32 count) { UserCart userCart = new UserCart(); userCart.UserId = userId; userCart.ProductId = productId; userCart.Count = count; return userCart; }