Currently, I'm passing a database name to the constructor of DbContext
. In the connectionStrings
section of my App.Config
file, I've added a connection string and specified the provider name:
<connectionStrings>
<add name="myConnectionString" connectionString="[..]" providerName="System.Data.SqlClient"/>
</connectionStrings>
Now, I want to get the connection string from an other kind of configuration source, but a ProviderIncompatibleException
is thrown. The exception contains the following message:
"The provider did not return a providermanifesttoken string".
So, how can I specify the provider name in a connection string? Currently my string contains data source
, database
and some other configuration settings.