예제 #1
0
 public NEWS ConvertNewsToNEWS(News news)
 {
     NEWS ResultNEWS = new NEWS();
     ResultNEWS.news_title = news.Article_title;
     ResultNEWS.news_id = news.Article_id;
     ResultNEWS.news_content = news.Article_content;
     ResultNEWS.news_isDeleted = news.Article_isDeleted;
     ResultNEWS.news_isOnIndex = news.News_isOnIndex;
     ResultNEWS.news_publish_date = news.Article_publish_date;
     ResultNEWS.news_timestamp = news.Article_timestamp;
     ResultNEWS.news_author = news.Article_author;
     ResultNEWS.news_click_count = news.News_click_count;
     ResultNEWS.news_image = news.News_image;
     return ResultNEWS;
 }
예제 #2
0
 public News ConvertNEWSToNews(NEWS news)
 {
     News ResultNews = new News();
     ResultNews.Article_title = news.news_title;
     ResultNews.Article_id = news.news_id;
     ResultNews.Article_content = news.news_content;
     ResultNews.Article_isDeleted = news.news_isDeleted;
     ResultNews.News_isOnIndex = news.news_isOnIndex;
     ResultNews.Article_publish_date = news.news_publish_date;
     ResultNews.Article_timestamp = news.news_timestamp;
     ResultNews.Article_author = news.news_author;
     ResultNews.News_click_count = news.news_click_count;
     ResultNews.News_image = news.news_image;
     return ResultNews;
 }
예제 #3
0
 /// <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;
 }
예제 #4
0
 /// <summary>
 /// 用于向 NEWS EntitySet 添加新对象的方法,已弃用。请考虑改用关联的 ObjectSet&lt;T&gt; 属性的 .Add 方法。
 /// </summary>
 public void AddToNEWS(NEWS nEWS)
 {
     base.AddObject("NEWS", nEWS);
 }
예제 #5
0
 Avfun_UI.News INewsDAL.ConvertNEWSToNews(NEWS news)
 {
     throw new NotImplementedException();
 }