I'm migrating an application from LINQ-to-SQL to Entity Framework and have changed the line:
using (var db = new MainDataContext(SystemHelpers.GetDatabaseConnectionString()))
to
using (var db = new MainDataEntities(SystemHelpers.GetDatabaseConnectionString()))
where SystemHelpers.GetDatabaseConnectionString())
is a file path to an .mdf file.
It works in LINQ-to-SQL but in Entity Framework the above line gives me this error:
The format of the initialization string conflicts with the specification which begins with '0';
which is the best translation I can do from the German:
"Das Format der Initialisierungszeichenfolge stimmt nicht mit der Spezifikation überein, die bei Index '0' beginnt."