Example #1
0
 public int Update(NameValueCollection parameters, NameValueCollection where, out ErrorEntity ErrInfo)
 {
     学员在线状态DA da = new 学员在线状态DA();
     int result = da.Update(parameters, where);
     if (result > 0)
     {
         ErrInfo = new ErrorEntity(RespCode.Success);
     }
     else
     {
         ErrInfo = new ErrorEntity(RespCode.SysError);
     }
     return result;
 }
Example #2
0
 public Int32 Insert(NameValueCollection parameters, out ErrorEntity ErrInfo)
 {
     学员在线状态DA da = new 学员在线状态DA();
     Int32 result = da.Insert(parameters);
     if (result > 0)
     {
         ErrInfo = new ErrorEntity(RespCode.Success);
     }
     else
     {
         ErrInfo = new ErrorEntity(RespCode.SysError);
     }
     return result;
 }
Example #3
0
 public List<学员在线状态> Select(NameValueCollection where, NameValueCollection orderby, int pageIndex, int pageSize, out int totalCount)
 {
     学员在线状态DA da = new 学员在线状态DA();
     return da.Select(where, orderby, pageIndex, pageSize, out totalCount).DataTableToList<学员在线状态>();
 }
Example #4
0
 public List<学员在线状态> Select(NameValueCollection where, NameValueCollection orderby)
 {
     学员在线状态DA da = new 学员在线状态DA();
     return da.Select(where, orderby).DataTableToList<学员在线状态>();
 }