<PackageReference Include="System.Data.SqlClient" Version="4.8.2" />

SqlBulkCopy

public sealed class SqlBulkCopy : IDisposable
Lets you efficiently bulk load a SQL Server table with data from another source.
using System.Data.Common; using System.Threading; using System.Threading.Tasks; namespace System.Data.SqlClient { public sealed class SqlBulkCopy : IDisposable { public int BatchSize { get { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_DataSqlClient); } set { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_DataSqlClient); } } public int BulkCopyTimeout { get { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_DataSqlClient); } set { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_DataSqlClient); } } public SqlBulkCopyColumnMappingCollection ColumnMappings { get { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_DataSqlClient); } } public string DestinationTableName { get { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_DataSqlClient); } set { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_DataSqlClient); } } public bool EnableStreaming { get { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_DataSqlClient); } set { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_DataSqlClient); } } public int NotifyAfter { get { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_DataSqlClient); } set { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_DataSqlClient); } } public event SqlRowsCopiedEventHandler SqlRowsCopied { add { } remove { } } public SqlBulkCopy(SqlConnection connection) { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_DataSqlClient); } public SqlBulkCopy(SqlConnection connection, SqlBulkCopyOptions copyOptions, SqlTransaction externalTransaction) { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_DataSqlClient); } public SqlBulkCopy(string connectionString) { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_DataSqlClient); } public SqlBulkCopy(string connectionString, SqlBulkCopyOptions copyOptions) { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_DataSqlClient); } public void Close() { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_DataSqlClient); } void IDisposable.Dispose() { } public void WriteToServer(DbDataReader reader) { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_DataSqlClient); } public void WriteToServer(DataRow[] rows) { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_DataSqlClient); } public void WriteToServer(DataTable table) { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_DataSqlClient); } public void WriteToServer(DataTable table, DataRowState rowState) { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_DataSqlClient); } public void WriteToServer(IDataReader reader) { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_DataSqlClient); } public Task WriteToServerAsync(DbDataReader reader) { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_DataSqlClient); } public Task WriteToServerAsync(DbDataReader reader, CancellationToken cancellationToken) { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_DataSqlClient); } public Task WriteToServerAsync(DataRow[] rows) { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_DataSqlClient); } public Task WriteToServerAsync(DataRow[] rows, CancellationToken cancellationToken) { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_DataSqlClient); } public Task WriteToServerAsync(DataTable table) { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_DataSqlClient); } public Task WriteToServerAsync(DataTable table, DataRowState rowState) { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_DataSqlClient); } public Task WriteToServerAsync(DataTable table, DataRowState rowState, CancellationToken cancellationToken) { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_DataSqlClient); } public Task WriteToServerAsync(DataTable table, CancellationToken cancellationToken) { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_DataSqlClient); } public Task WriteToServerAsync(IDataReader reader) { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_DataSqlClient); } public Task WriteToServerAsync(IDataReader reader, CancellationToken cancellationToken) { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_DataSqlClient); } } }