/// <summary>
 /// Deprecated Method for adding a new object to the UserCarts EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; 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="componentId">Initial value of the ComponentId property.</param>
 /// <param name="count">Initial value of the Count property.</param>
 public static UserCart CreateUserCart(global::System.Guid userId, global::System.Int32 componentId, global::System.Int32 count)
 {
     UserCart userCart = new UserCart();
     userCart.UserId = userId;
     userCart.ComponentId = componentId;
     userCart.Count = count;
     return userCart;
 }