public Importer(DbConnection sqlConnection, string tableName, params string[] columnNames)
        {
            DbConnection = sqlConnection;
              TableName = tableName;
              _columnNames = new HashSet<string>(columnNames);

              DbColumns = new SchemaProvider(sqlConnection)
            .GetColumns(tableName).ToArray();

              FormatFile = FormatFileBuilder.CreateFormatFile(DbColumns);

              if (Log.IsDebugEnabled)
              {
            Log.Debug(string.Format("Format file created: {0}", FormatFile.CreateLink()));
              }
        }
 private bcpFormatType GenerateFormatFileWithFormatFileBuilder()
 {
     var schemaProvider = new SchemaProvider(SqlConnection);
       var dbColumns = schemaProvider.GetColumns("Import");
       return FormatFileBuilder.CreateFormatType(dbColumns);
 }