コード例 #1
0
 /// <summary>
 /// 获取列表(根据查询条件获取全部列表)
 /// </summary>
 /// <param name="View_ServArea">传入的实体,可以是一个空实体</param>
 /// <param name="Where">SQL拼接的查询条件字条串,例如: " ID < 100 " </param>
 /// <returns>返回实体列表</returns>
 public static List<View_ServArea> GetList(View_ServArea View_ServArea, string Where)
 {
     List<View_ServArea> returnList = new List<View_ServArea>();
     List<object> tempList = DBClient.GetList(View_ServArea,new View_ServAreaMapping(), Constant.CONNSTRING, Where);
     foreach (object tempobject in tempList)
     {
         returnList.Add((View_ServArea)tempobject);
     }
     return returnList;
 }
コード例 #2
0
 /// <summary>
 /// 获取列表(无条件分页获取全部列表)
 /// </summary>
 /// <param name="View_ServArea">传入的实体,可以是一个空实体</param>
 /// <param name="PageSize">每页的记录数,例如:每页显示10条,则传入 10 </param>
 /// <param name="CurrentCount">当前是第几页</param>
 /// <param name="TotalCount">输出参数,返回总记录数</param>
 /// <returns>返回实体列表</returns>
 public static List<View_ServArea> GetList(View_ServArea View_ServArea, int PageSize, int CurrentCount, out int TotalCount)
 {
     List<View_ServArea> returnList = new List<View_ServArea>();
     List<object> tempList = DBClient.GetList(View_ServArea, new View_ServAreaMapping(), Constant.CONNSTRING,PageSize, CurrentCount, out TotalCount);
     foreach (object tempobject in tempList)
     {
         returnList.Add((View_ServArea)tempobject);
     }
     return returnList;
 }
コード例 #3
0
 /// <summary>
 /// 添加实体
 /// </summary>
 /// <param name="View_ServArea">传入的实体</param>
 /// <returns>操作数据库时返回的操作行数,如果大于 "0" 则返回 true 否则返回 false</returns>
 public static bool Add(View_ServArea View_ServArea)
 {
     return DBClient.Add(View_ServArea, new View_ServAreaMapping(), Constant.CONNSTRING);
 }
コード例 #4
0
 /// <summary>
 /// 根据编号获取实体
 /// </summary>
 /// <param name="View_ServArea">传入的实体,必须含有编号,根据编号获取</param>
 /// <returns>返回得到的实体</returns>
 public static View_ServArea Get(View_ServArea View_ServArea)
 {
     return (View_ServArea)DBClient.Get(View_ServArea, new View_ServAreaMapping(), Constant.CONNSTRING);
 }
コード例 #5
0
 /// <summary>
 /// 获取列表(无条件分页获取全部列表)
 /// </summary>
 /// <param name="view_ServType">传入的实体,可以是一个空实体</param>
 /// <param name="PageSize">每页的记录数,例如:每页显示10条,则传入 10 </param>
 /// <param name="CurrentCount">当前是第几页</param>
 /// <param name="Where">SQL拼接的查询条件字条串,例如: " ID < 100 " </param>
 /// <param name="TotalCount">输出参数,返回总记录数</param>
 /// <returns>返回实体列表</returns>
 public static List<View_ServArea> GetList(View_ServArea view_ServType, int PageSize, int CurrentCount, string Where, out int TotalCount)
 {
     return View_ServAreaDAL.GetList(view_ServType, PageSize, CurrentCount, Where, out TotalCount);
 }
コード例 #6
0
 /// <summary>
 /// 移除实体(根据实体编号移除一条记录)
 /// </summary>
 /// <param name="view_ServType">传入的实体,必须含有编号</param>
 /// <returns>操作数据库时返回的操作行数,如果大于 "0" 则返回 true 否则返回 false</returns>
 public static bool Remove(View_ServArea view_ServType)
 {
     return View_ServAreaDAL.Remove(view_ServType);
 }
コード例 #7
0
 /// <summary>
 /// 获取列表(根据查询条件获取全部列表)
 /// </summary>
 /// <param name="view_ServType">传入的实体,可以是一个空实体</param>
 /// <param name="Where">SQL拼接的查询条件字条串,例如: " ID < 100 " </param>
 /// <returns>返回实体列表</returns>
 public static List<View_ServArea> GetList(View_ServArea view_ServType, string Where)
 {
     return View_ServAreaDAL.GetList(view_ServType, Where);
 }
コード例 #8
0
 /// <summary>
 /// 获取列表(无条件获取全部列表)
 /// </summary>
 /// <param name="view_ServType">传入的实体,可以是一个空实体</param>
 /// <returns>返回实体列表</returns>
 public static List<View_ServArea> GetList(View_ServArea view_ServType)
 {
     return View_ServAreaDAL.GetList(view_ServType);
 }
コード例 #9
0
 /// <summary>
 /// 根据编号获取实体
 /// </summary>
 /// <param name="view_ServType">传入的实体,必须含有编号,根据编号获取</param>
 /// <returns>返回得到的实体</returns>
 public static View_ServArea Get(View_ServArea view_ServType)
 {
     return View_ServAreaDAL.Get(view_ServType);
 }
コード例 #10
0
 /// <summary>
 /// 添加实体
 /// </summary>
 /// <param name="view_ServType">传入的实体</param>
 /// <returns>操作数据库时返回的操作行数,如果大于 "0" 则返回 true 否则返回 false</returns>
 public static bool Add(View_ServArea view_ServType)
 {
     return View_ServAreaDAL.Add(view_ServType);
 }
コード例 #11
0
 /// <summary>
 /// 修改实体
 /// </summary>
 /// <param name="view_ServType">传入的实体</param>
 /// <returns>操作数据库时返回的操作行数,如果大于 "0" 则返回 true 否则返回 false</returns>
 public static bool Save(View_ServArea view_ServType)
 {
     return View_ServAreaDAL.Save(view_ServType);
 }