示例#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);
     }
 }