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

SqlBulkCopyOptions

public enum SqlBulkCopyOptions
Bitwise flag that specifies one or more options to use with an instance of SqlBulkCopy.

Check constraints while data is being inserted. By default, constraints are not checked.

Default = 0

Use the default values for all options.

When specified, cause the server to fire the insert triggers for the rows being inserted into the database.

Preserve source identity values. When not specified, identity values are assigned by the destination.

Preserve null values in the destination table regardless of the settings for default values. When not specified, null values are replaced by default values where applicable.

Obtain a bulk update lock for the duration of the bulk copy operation. When not specified, row locks are used.

When specified, each batch of the bulk-copy operation will occur within a transaction. If you indicate this option and also provide a SqlTransaction object to the constructor, an ArgumentException occurs.