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