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

Interop.Windows.Kernel32.IoControlCodeAccess

RequiredAccess. Indicates the type of access that a caller must request when opening the file object that represents the device (see IRP_MJ_CREATE).

The I/O manager sends the IRP for any caller that has a handle to the file object that represents the target device object.

The I/O manager sends the IRP only for a caller with read access rights, allowing the underlying device driver to transfer data from the device to system memory.

The I/O manager sends the IRP only for a caller with write access rights, allowing the underlying device driver to transfer data from system memory to its device.