/// <summary> /// 用于向 NEWS EntitySet 添加新对象的方法,已弃用。请考虑改用关联的 ObjectSet<T> 属性的 .Add 方法。 /// </summary> public void AddToNEWS(NEWS nEWS) { base.AddObject("NEWS", nEWS); }
/// <summary> /// 创建新的 NEWS 对象。 /// </summary> /// <param name="n_id">n_id 属性的初始值。</param> /// <param name="news_id">news_id 属性的初始值。</param> /// <param name="news_title">news_title 属性的初始值。</param> /// <param name="news_content">news_content 属性的初始值。</param> /// <param name="news_author">news_author 属性的初始值。</param> /// <param name="news_publish_date">news_publish_date 属性的初始值。</param> /// <param name="news_isDeleted">news_isDeleted 属性的初始值。</param> /// <param name="news_isOnIndex">news_isOnIndex 属性的初始值。</param> /// <param name="news_image">news_image 属性的初始值。</param> /// <param name="news_click_count">news_click_count 属性的初始值。</param> /// <param name="news_timestamp">news_timestamp 属性的初始值。</param> public static NEWS CreateNEWS(global::System.Int64 n_id, global::System.Guid news_id, global::System.String news_title, global::System.String news_content, global::System.Guid news_author, global::System.DateTime news_publish_date, global::System.Boolean news_isDeleted, global::System.Boolean news_isOnIndex, global::System.String news_image, global::System.Int32 news_click_count, global::System.Byte[] news_timestamp) { NEWS nEWS = new NEWS(); nEWS.n_id = n_id; nEWS.news_id = news_id; nEWS.news_title = news_title; nEWS.news_content = news_content; nEWS.news_author = news_author; nEWS.news_publish_date = news_publish_date; nEWS.news_isDeleted = news_isDeleted; nEWS.news_isOnIndex = news_isOnIndex; nEWS.news_image = news_image; nEWS.news_click_count = news_click_count; nEWS.news_timestamp = news_timestamp; return nEWS; }