Exemplo n.º 1
0
 /// <summary>
 /// 创建新的 UserFavorites 对象。
 /// </summary>
 /// <param name="memberID">MemberID 属性的初始值。</param>
 /// <param name="productID">ProductID 属性的初始值。</param>
 /// <param name="productTitle">ProductTitle 属性的初始值。</param>
 /// <param name="productDesc">ProductDesc 属性的初始值。</param>
 /// <param name="productShop">ProductShop 属性的初始值。</param>
 /// <param name="productCateID">ProductCateID 属性的初始值。</param>
 /// <param name="prodcutPrice">ProdcutPrice 属性的初始值。</param>
 /// <param name="productNowPrice">ProductNowPrice 属性的初始值。</param>
 /// <param name="createTime">CreateTime 属性的初始值。</param>
 public static UserFavorites CreateUserFavorites(global::System.Int32 memberID, global::System.String productID, global::System.String productTitle, global::System.String productDesc, global::System.String productShop, global::System.String productCateID, global::System.Decimal prodcutPrice, global::System.Decimal productNowPrice, global::System.DateTime createTime)
 {
     UserFavorites userFavorites = new UserFavorites();
     userFavorites.MemberID = memberID;
     userFavorites.ProductID = productID;
     userFavorites.ProductTitle = productTitle;
     userFavorites.ProductDesc = productDesc;
     userFavorites.ProductShop = productShop;
     userFavorites.ProductCateID = productCateID;
     userFavorites.ProdcutPrice = prodcutPrice;
     userFavorites.ProductNowPrice = productNowPrice;
     userFavorites.CreateTime = createTime;
     return userFavorites;
 }
Exemplo n.º 2
0
 /// <summary>
 /// 用于向 UserFavorites EntitySet 添加新对象的方法,已弃用。请考虑改用关联的 ObjectSet&lt;T&gt; 属性的 .Add 方法。
 /// </summary>
 public void AddToUserFavorites(UserFavorites userFavorites)
 {
     base.AddObject("UserFavorites", userFavorites);
 }