/// <summary> /// 用于向 V_ShopComment EntitySet 添加新对象的方法,已弃用。请考虑改用关联的 ObjectSet<T> 属性的 .Add 方法。 /// </summary> public void AddToV_ShopComment(V_ShopComment v_ShopComment) { base.AddObject("V_ShopComment", v_ShopComment); }
/// <summary> /// 创建新的 V_ShopComment 对象。 /// </summary> /// <param name="id">Id 属性的初始值。</param> /// <param name="shopId">ShopId 属性的初始值。</param> /// <param name="userId">UserId 属性的初始值。</param> /// <param name="comment">Comment 属性的初始值。</param> /// <param name="stars">Stars 属性的初始值。</param> /// <param name="createTime">CreateTime 属性的初始值。</param> /// <param name="userName">UserName 属性的初始值。</param> /// <param name="userPhoto">UserPhoto 属性的初始值。</param> /// <param name="userGrade">UserGrade 属性的初始值。</param> /// <param name="deliveryTime">DeliveryTime 属性的初始值。</param> /// <param name="payMoney">PayMoney 属性的初始值。</param> public static V_ShopComment CreateV_ShopComment(global::System.Int32 id, global::System.Int32 shopId, global::System.Int32 userId, global::System.String comment, global::System.Int16 stars, global::System.DateTime createTime, global::System.String userName, global::System.String userPhoto, global::System.String userGrade, global::System.Int16 deliveryTime, global::System.Int16 payMoney) { V_ShopComment v_ShopComment = new V_ShopComment(); v_ShopComment.Id = id; v_ShopComment.ShopId = shopId; v_ShopComment.UserId = userId; v_ShopComment.Comment = comment; v_ShopComment.Stars = stars; v_ShopComment.CreateTime = createTime; v_ShopComment.UserName = userName; v_ShopComment.UserPhoto = userPhoto; v_ShopComment.UserGrade = userGrade; v_ShopComment.DeliveryTime = deliveryTime; v_ShopComment.PayMoney = payMoney; return v_ShopComment; }