/// <summary> /// 创建新的 UserProductComment 对象。 /// </summary> /// <param name="memberID">MemberID 属性的初始值。</param> /// <param name="productID">ProductID 属性的初始值。</param> /// <param name="commentTitle">CommentTitle 属性的初始值。</param> /// <param name="commentBody">CommentBody 属性的初始值。</param> /// <param name="createTime">CreateTime 属性的初始值。</param> /// <param name="status">Status 属性的初始值。</param> public static UserProductComment CreateUserProductComment(global::System.Int32 memberID, global::System.String productID, global::System.String commentTitle, global::System.String commentBody, global::System.DateTime createTime, global::System.String status) { UserProductComment userProductComment = new UserProductComment(); userProductComment.MemberID = memberID; userProductComment.ProductID = productID; userProductComment.CommentTitle = commentTitle; userProductComment.CommentBody = commentBody; userProductComment.CreateTime = createTime; userProductComment.Status = status; return userProductComment; }
/// <summary> /// 用于向 UserProductComment EntitySet 添加新对象的方法,已弃用。请考虑改用关联的 ObjectSet<T> 属性的 .Add 方法。 /// </summary> public void AddToUserProductComment(UserProductComment userProductComment) { base.AddObject("UserProductComment", userProductComment); }