I am moving the application from LINQ-to-SQL to the Entity Framework and changed the line:
using (var db = new MainDataContext(SystemHelpers.GetDatabaseConnectionString()))
to
using (var db = new MainDataEntities(SystemHelpers.GetDatabaseConnectionString()))
where SystemHelpers.GetDatabaseConnectionString())is the path to the .mdf file .
It works in LINQ-to-SQL, but in the Entity Framework the above line gives me this error :
Initialization format is a string conflict with a specification starting with '0';
which is the best translation I can do from German:
"Das Format der Initializing Stimulator nicht mit der Spezifikation überein, die bei Index '0' beginnt."