/// <summary>Executes the command</summary> /// <returns>The result of the command</returns> public override BulkCopyResult Execute() { _requestValidator.Validate(CommandRequest); if (CommandRequest.MappingType == MappingType.AutoMap || CommandRequest.MappingType == MappingType.PartialMap) { CommandRequest.ColumnMapping ??= new ColumnMapping(); _autoMapper.MapDataTableToTable(CommandRequest.DestinationTableName, CommandRequest.DataTable, CommandRequest.ColumnMapping); } return(_databaseCommander.BulkCopy(CommandRequest)); }