Skip to content

Commit

Permalink
updated sample project to be used for SqlClient GitHub issue
Browse files Browse the repository at this point in the history
  • Loading branch information
janseris committed Jun 28, 2022
1 parent 28350c0 commit 8ee2e00
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions MauiApp11/MainPage.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,9 @@ private void button_Clicked(object sender, EventArgs e)
{
results.Children.Clear();

var connectionString = Constants.WindowsConnectionString;
//skip certificate validation - why is this or Encrypt=false needed in MAUI (even for integrated security = Windows authentication)
//but not needed in WinForms or Blazor (non-MAUI) at all?
//this does not help on the Android issue
//connectionString += "TrustServerCertificate=true;";

//with this, Windows authentication and also SQL authentication on Windows
//does not require a trusted certificate for the (local) SQL Server (Express)
//on Android, this does not solve the pre-login handshake problem
var connectionString = Constants.LocalNetworkConnectionString;

connectionString += "TrustServerCertificate=true;";
connectionString += "Encrypt=false;";

var DAOs = DAOsHelper.DAOs;
Expand Down

0 comments on commit 8ee2e00

Please sign in to comment.