MySqlConnector


MySqlBulkCopy.WriteToServerAsync method (1 of 3)

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

public ValueTask WriteToServerAsync(DataTable dataTable, 
    CancellationToken cancellationToken = default(CancellationToken))

Remarks

This method is not available on netstandard1.3.

See Also


MySqlBulkCopy.WriteToServerAsync method (2 of 3)

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

public ValueTask WriteToServerAsync(IDataReader dataReader, 
    CancellationToken cancellationToken = default(CancellationToken))
parameterdescription
dataReaderThe IDataReader to copy from.
cancellationTokenA token to cancel the asynchronous operation.

See Also


MySqlBulkCopy.WriteToServerAsync method (3 of 3)

Asynchronously 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 ValueTask WriteToServerAsync(IEnumerable<DataRow> dataRows, int columnCount, 
    CancellationToken cancellationToken = default(CancellationToken))
parameterdescription
dataRowsThe collection of DataRow objects.
columnCountThe number of columns to copy (in each row).
cancellationTokenA token to cancel the asynchronous operation.

Remarks

This method is not available on netstandard1.3.

See Also