public void Execute() { if (_keepIdentityColumnValue && _identityOrSerialColumn == null) { throw new ArgumentException($@"method ""{nameof(IdentityColumn)}"" must be called when ""keepIdentityColumnValue"" is True."); } var propertiesToIgnore = _withoutMembers.ToList(); if (_keepIdentityColumnValue == false && _identityOrSerialColumn != null) { propertiesToIgnore.Add(_identityOrSerialColumn); } _bulkLoader.Insert( _tableName, _conn, _keepIdentityColumnValue, _dataToInsert, propertiesToIgnore, _renameFields, _batchSize, _noBatch); }
public void Execute() { _bulkLoader.Insert( _tableName, _conn, _keepIdentityColumnValue, _dataToInsert, _withoutMembers, _renameFields, _batchSize, _noBatch); }