Hallo liebe Community,
meine EF Code First Anwendung erstellt trotz Connection String in der App.config die Datenbank immer auf dem lokalen SQL Server statt auf dem Server den in dem Connection String angebe.
In anderen Projekten hat das bisher auch funktioniert, hat jemand eine Ahnung warum EF in dieser Anwendung den Connection String ignoriert?
Habe es schon in beiden Projekten probiert, also in der Projektmappe sind 2 Projekte, eine Class Library und eine Console Application. In beiden App.config Dateien hab ich es schon ausprobiert, es hilft nix
So sieht das Fragment der App.config aus:
XML-Daten
1: 2: 3: 4: 5:
| <connectionStrings> <add name="DefaultConnection" providerName="System.Data.SqlClient" connectionString="Source=servername;Catalog=dbname;Integrated Security=True;"/> </connectionStrings> |
LG Schafschaf