Y
Y
Ytsu Ytsuevich2015-07-31 20:08:54
Entity Framework
Ytsu Ytsuevich, 2015-07-31 20:08:54

Entity Framework configuration error?

An error pops up in an ASP.NET application, in this project:
f09ac7ccda2248b190d9aa4899ca73d7.PNGEntityHeart - context with models.
entity1 - ASP.NET startup project
Error 1. As is!
11b03814e26e46a79213aa3171a9d300.PNGThe error occurs when querying the database.

// метод GetAll() примерно такой
return _entityContext.SomeTable;

GetAll() - successfully returns IQueryable, and after calling ToList(), accordingly, an error occurs
Error 2. (after adding the connectionStrings tag to the Web.config ) Error 3. (after adding the entityFramework and providers tags to the Web.config ) Web.config itself (in comments 1 and 2 - this is what I added): I also want to note that the project with Entity has App.config and packages.config What and where do I need to add?
d880cfd86349479db2dacee83f4e1e10.PNG

fa15b1bba4f34836a111b3c9eab9484d.PNG
fa21dadd7870400681db34a804aad88a.PNG

And is it possible to make sure that changes are made only to one project with Entity, and when creating new projects, nothing needs to be changed in them?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question