Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
 public void Execute()
 {
     _bulkLoader.Insert(
         _tableName,
         _conn,
         _keepIdentityColumnValue,
         _dataToInsert,
         _withoutMembers,
         _renameFields,
         _batchSize,
         _noBatch);
 }