Beispiel #1
0
        public DataCommand CreateCommand(DataConnection connection,
                                         DbExecutionType executionType, IDataCommandResultProcessor resultProcessor)
        {
            _dbCommand.CommandText = string.Join(string.Empty, _sqlStrings);
            var cmd = new DataCommand(connection, _dbCommand, executionType, resultProcessor, _records);

            _dbCommand = null;
            return(cmd);
        }
Beispiel #2
0
 public DataCommand(DataConnection connection, IDbCommand dbCommand, DbExecutionType executionType,
                    IDataCommandResultProcessor resultsProcessor, IList <EntityRecord> records,
                    IList <BatchParamCopy> paramCopyList = null)
 {
     Connection      = connection;
     DbCommand       = dbCommand;
     ExecutionType   = executionType;
     ResultProcessor = resultsProcessor;
     Records         = records;
     ParamCopyList   = paramCopyList;
 }