using System; using AIMSDAL; using AIMSModel; using System.Collections; using System.Collections.Generic; using System.Data; namespace AIMSBLL { public partial class BNoticeContent { #region 插入实体操作部份 /// /// 插入实体 /// /// 实体类对象 /// 标识列值或影响的记录行数 public static int Insert(NoticeContent noticeContent) { return DNoticeContent.Insert(noticeContent); } #endregion #region 删除实体操作 /// /// 删除实体 /// /// 实体类对象 /// 影响的记录行数 public static int Delete(NoticeContent noticeContent) { return DNoticeContent.Delete(noticeContent); } /// /// 根据对象查询语句删除 /// /// 对象查询语句 /// 参数列表 /// 影响的记录行数 public static int Delete(string oql, ParameterList parameters) { return DNoticeContent.Delete(oql,parameters); } #endregion #region 更新实体操作 /// /// 更新实体 /// /// 实体类对象 /// 影响的记录行数 public static int Update(NoticeContent noticeContent) { return DNoticeContent.Update(noticeContent); } /// /// 根据对象查询语句更新实体 /// /// 对象查询语句 /// 参数列表 /// 影响的记录行数 public static int Update(string oql, ParameterList parameters) { return DNoticeContent.Update(oql,parameters); } #endregion #region 查询实体集合 /// /// \查询实体集合 /// /// 实体类对象集合 public static List Select() { return DNoticeContent.Select(); } /// /// 递归查询实体集合 /// /// 递归类型 /// 递归深度 /// 实体类对象集合 public static List Select(RecursiveType recursiveType, int recursiveDepth) { return DNoticeContent.Select(recursiveType, recursiveDepth); } /// /// 根据对象查询语句查询实体集合 /// /// 对象查询语句 /// 参数列表 /// 实体类对象集合 public static List Select(string oql, ParameterList parameters) { return DNoticeContent.Select(oql, parameters); } /// /// 根据对象查询语句递归查询实体集合 /// /// 对象查询语句 /// 参数列表 /// 递归类型 /// 递归深度 /// 实体类对象集合 public static List Select(string oql, ParameterList parameters,RecursiveType recursiveType, int recursiveDepth) { return DNoticeContent.Select(oql, parameters, recursiveType, recursiveDepth); } /// /// 查询NoticeContent所有的内容 /// /// public static DataTable GetNoticeContent(DateTime time) { return DNoticeContent.GetNoticeContent(time); } #endregion #region 查询单个实体 /// /// 更据对象查询语句查询单个实体 /// /// 对象查询语句 /// 参数列表 /// 实体对象 public static NoticeContent SelectSingle(string oql, ParameterList parameters) { return DNoticeContent.SelectSingle(oql, parameters); } /// /// 更据对象查询语句递归查询单个实体 /// /// 对象查询语句 /// 参数列表 /// 递归类型 /// 递归深度 /// 实体对象 public static NoticeContent SelectSingle(string oql, ParameterList parameters, RecursiveType recursiveType, int recursiveDepth) { return DNoticeContent.SelectSingle(oql, parameters, recursiveType, recursiveDepth); } /// /// 按主键字段查询特定实体 /// /// 主键值 /// 实体类对象 public static NoticeContent SelectSingle(int? id) { return DNoticeContent.SelectSingle(id); } /// /// 更据主键递归查询单个实体 /// /// 递归类型 /// 递归深度 /// 实体对象 public static NoticeContent SelectSingle(int? id, RecursiveType recursiveType, int recursiveDepth) { return DNoticeContent.SelectSingle(id, recursiveType, recursiveDepth); } #endregion } }