MySqlConnector


MySqlBulkCopy.WriteToServer method (1 of 3)

Copies all rows in the supplied DataTable to the destination table specified by the DestinationTableName property of the MySqlBulkCopy object.

public MySqlBulkCopyResult WriteToServer(DataTable dataTable)
parameterdescription
dataTableThe DataTable to copy.

Return Value

A MySqlBulkCopyResult with the result of the bulk copy operation.

See Also


MySqlBulkCopy.WriteToServer method (2 of 3)

Copies all rows in the supplied IDataReader to the destination table specified by the DestinationTableName property of the MySqlBulkCopy object.

public MySqlBulkCopyResult WriteToServer(IDataReader dataReader)
parameterdescription
dataReaderThe IDataReader to copy from.

Return Value

A MySqlBulkCopyResult with the result of the bulk copy operation.

See Also


MySqlBulkCopy.WriteToServer method (3 of 3)

Copies all rows in the supplied sequence of DataRow objects to the destination table specified by the DestinationTableName property of the MySqlBulkCopy object. The number of columns to be read from the DataRow objects must be specified in advance.

public MySqlBulkCopyResult WriteToServer(IEnumerable<DataRow> dataRows, int columnCount)
parameterdescription
dataRowsThe collection of DataRow objects.
columnCountThe number of columns to copy (in each row).

Return Value

A MySqlBulkCopyResult with the result of the bulk copy operation.

See Also