/// <summary> /// 创建新的 DiscussContent 对象。 /// </summary> /// <param name="id">Id 属性的初始值。</param> /// <param name="discussId">DiscussId 属性的初始值。</param> /// <param name="creatTime">CreatTime 属性的初始值。</param> /// <param name="title">Title 属性的初始值。</param> /// <param name="discussUserId">DiscussUserId 属性的初始值。</param> /// <param name="content">Content 属性的初始值。</param> public static DiscussContent CreateDiscussContent(global::System.Int32 id, global::System.Int32 discussId, global::System.String creatTime, global::System.String title, global::System.Int32 discussUserId, global::System.String content) { DiscussContent discussContent = new DiscussContent(); discussContent.Id = id; discussContent.DiscussId = discussId; discussContent.CreatTime = creatTime; discussContent.Title = title; discussContent.DiscussUserId = discussUserId; discussContent.Content = content; return discussContent; }
/// <summary> /// 用于向 DiscussContents EntitySet 添加新对象的方法,已弃用。请考虑改用关联的 ObjectSet<T> 属性的 .Add 方法。 /// </summary> public void AddToDiscussContents(DiscussContent discussContent) { base.AddObject("DiscussContents", discussContent); }