How to set the connection string correctly for the DataBase First approach? because I read that it should contain a description of EDMX metadata ( .csdl , .ssdl , .msl files ), and when adding a connection string to the project parameters, nothing about these files is written in the configuration file. Do they need to be written in the configuration file manually or is there another way to add a connection string?
|
1 answer
There is a detailed instruction on MSDN about the implementation of the EntityFramework DataBase First approach. If you watch the video, then you can see that the connection string is entered into the configuration file automatically when the database is connected (the time for video is 1:35).
Here is a picture with a connection string that will be added to App.Config : 
I also advise you to familiarize yourself with the entire content of the article: Getting Started with the Entity Framework (EF)
|