protected virtual void InitPageCount() { using (DbCommandWrapped wrapped = this.DbHelper.CreateDbCommandWrapped(this.CreateSqlCountCommand(), this.Condition.Parameters)) { this.RecordCount = wrapped.ExecuteScalar().As <int>(); } }
protected object ExecuteScalar(DbCommandWrapped command) { using (command) { DateTime now = DateTime.Now; object obj2 = command.ExecuteScalar(); this.ProcessSlowCommandLog(command.Command, now, DateTime.Now); return(obj2); } }