Unable to find link string Entity Framework

0

I miss an error using entity framework and I can not find it. The project I am doing is divided into 3 MVC layers, which in the data layer I have the model of the database and the connection and in the business all methods; but when I want to bring all the owners, this mistake comes up.

Incidentally I look at the app.config , in the class and the name is all right. What could it be?

app.config:

    
asked by Braian Wenger 18.08.2017 в 14:04
source

1 answer

1

If the solution is made up of several projects, you will probably have some of the 'Class Library' type, one that you define as the beginning, probably Windows Application or Web Site.

What you have to do is move the entity framework configuration section of the app.config that is inside the Class Library project (the one that compiles to dll) to the app.config of the project that you define as start.

Remember that the configuration is automatically taken from the config of the project you are running. If the configuration is in a .config inside a dll it will not read it.

    
answered by 18.08.2017 в 20:04