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; }
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; }
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<学员在线状态>(); }
public List<学员在线状态> Select(NameValueCollection where, NameValueCollection orderby) { 学员在线状态DA da = new 学员在线状态DA(); return da.Select(where, orderby).DataTableToList<学员在线状态>(); }