Source/Providers/NFX.MySQL/MySQLDataStore.cs
/// <summary>
///  Performs CRUD execution of queries that do not return result set. Override to do custom Query interpretation
/// </summary>
Performs CRUD execution of queries that do not return result set. Override to do custom Query interpretation
Performs CRUD execution of queries that do not return result set . Override to do custom Query interpretation
protected internal virtual int DoExecuteWithoutFetch(MySqlConnection cnn, MySqlTransaction transaction, Query[] queries)
        {
            if (queries==null) return 0;
            var affected = 0;
            foreach(var query in queries)
            {
              var handler = QueryResolver.Resolve(query);
              try
              {
                affected += handler.ExecuteWithoutFetch(new MySQLCRUDQueryExecutionContext(this, cnn, transaction), query);
              }
              catch (Exception error)
              {
                throw new MySQLDataAccessException(
                               StringConsts.EXECUTE_WITHOUT_FETCH_ERROR + error.ToMessageWithType(),
                               error,
                               KeyViolationKind.Unspecified,
                               CRUDGenerator.KeyViolationName(error));
              }
            }
            return affected;
        }
protected internal virtual int DoExecuteWithoutFetch ( MySqlConnection cnn , MySqlTransaction transaction , Query [ ] queries ) { if ( queries == null ) return 0 ; var affected = 0 ; foreach ( var query in queries ) { var handler = QueryResolver . Resolve ( query ) ; try { affected += handler . ExecuteWithoutFetch ( new MySQLCRUDQueryExecutionContext ( this , cnn , transaction ) , query ) ; } catch ( Exception error ) { throw new MySQLDataAccessException ( StringConsts . EXECUTE_WITHOUT_FETCH_ERROR + error . ToMessageWithType ( ) , error , KeyViolationKind . Unspecified , CRUDGenerator . KeyViolationName ( error ) ) ; } } return affected ; }
Performs CRUD execution of queries that do not return result set.
Performs CRUD execution of queries that do not return result set .
cnn
MySqlConnection
transaction
MySqlTransaction
queries
Query[]