Пример #1
0
 public int Delete(NameValueCollection where, out ErrorEntity ErrInfo)
 {
     OEQuestionDA da = new OEQuestionDA();
     NameValueCollection parameters = new NameValueCollection();
     parameters.Add("FQuestionStatus", "0");
     return Update(parameters, where, out ErrInfo);
 }
Пример #2
0
 public Int64 Insert(NameValueCollection parameters, out ErrorEntity ErrInfo)
 {
     OEQuestionDA da = new OEQuestionDA();
     Int64 result = da.InsertAndReturnId64(parameters);
     if (result > 0)
     {
         ErrInfo = new ErrorEntity(RespCode.Success);
     }
     else
     {
         ErrInfo = new ErrorEntity(RespCode.SysError);
     }
     return result;
 }
Пример #3
0
 public int Update(NameValueCollection parameters, NameValueCollection where, out ErrorEntity ErrInfo)
 {
     OEQuestionDA da = new OEQuestionDA();
     int result = da.Update(parameters, where);
     if (result > 0)
     {
         ErrInfo = new ErrorEntity(RespCode.Success);
     }
     else
     {
         ErrInfo = new ErrorEntity(RespCode.SysError);
     }
     return result;
 }
Пример #4
0
 public Int64 SelectCount(NameValueCollection where)
 {
     OEQuestionDA da = new OEQuestionDA();
     return da.Select(where).Rows.Count;
 }
Пример #5
0
 public List<OEQuestion> Select(NameValueCollection where, NameValueCollection orderby, int pageIndex, int pageSize, out int totalCount)
 {
     OEQuestionDA da = new OEQuestionDA();
     return da.Select(where, orderby, pageIndex, pageSize, out totalCount).DataTableToList<OEQuestion>();
 }
Пример #6
0
 public List<OEQuestion> Select(NameValueCollection where, NameValueCollection orderby)
 {
     OEQuestionDA da = new OEQuestionDA();
     return da.Select(where, orderby).DataTableToList<OEQuestion>();
 }