public static void ExecuteReaderAndRead( this IDbTransaction dbTransaction, IQueryBuilder query, Action<IDataReader> action )
 {
     ExecuteReader( dbTransaction,
                    query.GetSql(),
                    query.GetParameters(),
                    dataReader => dataReader.Read( action ) );
 }
 public static void ExecuteReader( this IDbConnection dbConnection, IQueryBuilder queryBuilder, Action<IDataReader> action )
 {
     try
     {
         RootExecuteReader( dbConnection, queryBuilder, action );
     }
     catch ( DbException ex )
     {
         Ez.DbExceptionHandler().Handle( ex, queryBuilder.GetSql(), queryBuilder.GetParameters() );
     }
 }
 public static void ExecuteNonQuery( this IDbTransaction dbTransaction, IQueryBuilder query )
 {
     ExecuteNonQuery( dbTransaction, query.GetSql(), query.GetParameters() );
 }
 public static IDbCommand CreateCommand( this IDbConnection dbConnection, IQueryBuilder queryBuilder )
 {
     return dbConnection.CreateCommand( queryBuilder.GetSql(), queryBuilder.GetParameters() );
 }