Unable to use nhibernate and Azure SQL Database #2533
Replies: 1 comment
-
The dialect property is mandatory anyway, even with user supplied connection. But for your case it seems to me you should instead implement your own connection provider (likely deriving from |
Beta Was this translation helpful? Give feedback.
-
We are trying to connect to an Azure SQL Database with a Client ID / SPN and Password for that purpose we need to set on the connection string the following:
Authentication = "Active Directory Password"
however it is not supported. When we attempt to use it the following exception is throwBased on microsoft feedback we need to set the access token in the ADO.NET connection, however we couldn't find a NHibernate ADO.NET to set Ex: "connection.access_token" we check Table 3.1. NHibernate ADO.NET Properties.
If we try to skip the configuration in order to use an user provided ADO.NET connection we get an exception for each property that is missing
the exceptions occurs when we try to build the session factory.
Beta Was this translation helpful? Give feedback.
All reactions