Пример #1
0
 /// <summary>
 /// 插入NewsType
 /// </summary>
 /// <param name="NewsType">news_type</param>
 public void InsertNewsType(NewsType newstype)
 {
     ExecuteInsert("InsertNewsType", newstype);
     newstype.IdOld = newstype.Id;
 }
Пример #2
0
 /// <summary>
 /// 更新NewsType
 /// </summary>
 /// <param name="NewsType">news_type</param>
 public int UpdateNewsType(NewsType newstype)
 {
     int i = ExecuteUpdate("UpdateNewsType", newstype);
     newstype.IdOld = newstype.Id;
     return i;
 }
Пример #3
0
 /// <summary>
 /// 获取news_type列表(包含父对象)
 /// </summary>
 /// <param name="newstype">news_type</param>
 /// <returns>news_type集合</returns>
 public IList<NewsType> GetNewsType(NewsType newstype)
 {
     return ExecuteQueryForList<NewsType>("GetNewsType", newstype);
 }