<PackageReference Include="Microsoft.Data.SqlClient" Version="7.0.2" />

Interop.Windows.NtDll.CreateDisposition

File creation disposition when calling directly to NT APIs.

Create if the file doesn't exist or fail if it does exist. Equivalent to CREATE_NEW or CreateNew.

Open if the file exists or fail if it doesn't exist. Equivalent to OPEN_EXISTING or Open.

Open if the file exists or create if it doesn't exist. Equivalent to OPEN_ALWAYS or OpenOrCreate.

Open and overwrite if the file exists or fail if it doesn't exist. Equivalent to TRUNCATE_EXISTING or Truncate.

Open and overwrite if the file exists or create if it doesn't exist. Equivalent to CREATE_ALWAYS or Create.

Default. Replace or create. Deletes existing file instead of overwriting.