예제 #1
0
 protected virtual void InitPageCount()
 {
     using (DbCommandWrapped wrapped = this.DbHelper.CreateDbCommandWrapped(this.CreateSqlCountCommand(), this.Condition.Parameters))
     {
         this.RecordCount = wrapped.ExecuteScalar().As <int>();
     }
 }
예제 #2
0
파일: DbHelper.cs 프로젝트: liyu7342/QL
 protected object ExecuteScalar(DbCommandWrapped command)
 {
     using (command)
     {
         DateTime now  = DateTime.Now;
         object   obj2 = command.ExecuteScalar();
         this.ProcessSlowCommandLog(command.Command, now, DateTime.Now);
         return(obj2);
     }
 }