Based on this IONOS article you can connect to a SQL Server database using System.Data.SqlClient. The following example shows a connection string for SQL Database using System.Data.SqlClient.
<add name="ConnectionStringName"
providerName="System.Data.SqlClient"
connectionString="Data Source=tcp:ServerName.database.windows.net,1433;Initial Catalog=DatabaseName;Integrated Security=False;User Id=username@servername;Password=password;Encrypt=True;TrustServerCertificate=False;MultipleActiveResultSets=True" />
The TrustServerCertificate=False setting is recommended to help protect against man-in-the-middle attacks.