I Entity Framework Code First
verwenden,Die Verbindungszeichenfolge ‚MyConnection‘ in der Konfigurationsdatei der Anwendung nicht über das erforderliche provider Attribut enthält“
ist meine Verbindungszeichenfolge in einer Konfigurationsdatei:
<connectionStrings>
<clear/>
<add name="ApplicationServices" connectionString="Data Source=PC-X;Initial Catalog=MYdb;Integrated Security=True"/>
</connectionStrings>
Wenn ich versuche, Zugriff auf die Daten (etwas, das die DB schaffen soll) mit dem folgenden Fehler fallen:
The connection string 'ApplicationServices' in the application's configuration file does not contain the required providerName attribute."
Was für ein Ich vermisse?
Wenn Entity Framework: 'provider = "System.Data.EntityClient"' – Dr1Ku
SqlClient arbeitet für Entity Framework auch. – IronMan84
Ok, gut zu wissen, danke für das Heads-Up! – Dr1Ku