Exemplo n.º 1
0
 /// <summary>
 /// 用于向 AdminNewsList EntitySet 添加新对象的方法,已弃用。请考虑改用关联的 ObjectSet&lt;T&gt; 属性的 .Add 方法。
 /// </summary>
 public void AddToAdminNewsList(AdminNewsList adminNewsList)
 {
     base.AddObject("AdminNewsList", adminNewsList);
 }
Exemplo n.º 2
0
 /// <summary>
 /// 创建新的 AdminNewsList 对象。
 /// </summary>
 /// <param name="admin_nickname">admin_nickname 属性的初始值。</param>
 /// <param name="news_id">news_id 属性的初始值。</param>
 /// <param name="news_title">news_title 属性的初始值。</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_content">news_content 属性的初始值。</param>
 /// <param name="news_author">news_author 属性的初始值。</param>
 public static AdminNewsList CreateAdminNewsList(global::System.String admin_nickname, global::System.Guid news_id, global::System.String news_title, 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.String news_content, global::System.Guid news_author)
 {
     AdminNewsList adminNewsList = new AdminNewsList();
     adminNewsList.admin_nickname = admin_nickname;
     adminNewsList.news_id = news_id;
     adminNewsList.news_title = news_title;
     adminNewsList.news_publish_date = news_publish_date;
     adminNewsList.news_isDeleted = news_isDeleted;
     adminNewsList.news_isOnIndex = news_isOnIndex;
     adminNewsList.news_image = news_image;
     adminNewsList.news_click_count = news_click_count;
     adminNewsList.news_content = news_content;
     adminNewsList.news_author = news_author;
     return adminNewsList;
 }