Source/Providers/NFX.MySQL/MySQLDataStore.cs
/// <summary>
///  Performs CRUD load. Override to do custom Query interpretation
/// </summary>
Performs CRUD load. Override to do custom Query interpretation
Performs CRUD load . Override to do custom Query interpretation
protected internal virtual List<RowsetBase> DoLoad(MySqlConnection cnn, MySqlTransaction transaction, Query[] queries, bool oneRow = false)
        {
            var result = new List<RowsetBase>();
            if (queries==null) return result;
            foreach(var query in queries)
            {
              var handler = QueryResolver.Resolve(query);
              try
              {
                var rowset = handler.Execute( new MySQLCRUDQueryExecutionContext(this, cnn, transaction), query, oneRow);
                result.Add(rowset);
              }
              catch (Exception error)
              {
                throw new MySQLDataAccessException(
                                StringConsts.LOAD_ERROR + error.ToMessageWithType(),
                                error,
                                KeyViolationKind.Unspecified,
                                CRUDGenerator.KeyViolationName(error));
              }
            }
            return result;
        }
protected internal virtual List < RowsetBase > DoLoad ( MySqlConnection cnn , MySqlTransaction transaction , Query [ ] queries , bool oneRow = false ) { var result = new List < RowsetBase > ( ) ; if ( queries == null ) return result ; foreach ( var query in queries ) { var handler = QueryResolver . Resolve ( query ) ; try { var rowset = handler . Execute ( new MySQLCRUDQueryExecutionContext ( this , cnn , transaction ) , query , oneRow ) ; result . Add ( rowset ) ; } catch ( Exception error ) { throw new MySQLDataAccessException ( StringConsts . LOAD_ERROR + error . ToMessageWithType ( ) , error , KeyViolationKind . Unspecified , CRUDGenerator . KeyViolationName ( error ) ) ; } } return result ; }
Performs CRUD load.
Performs CRUD load .
cnn
MySqlConnection
transaction
MySqlTransaction
queries
Query[]
oneRow
bool