MVC3 with Npgsql and Entity Framework and .Net Framework 4

Well, I would like to know if NpgSQL.NET framework 4 supports EntityFramework as I tried to use it with framework 4 and Microsoft.Data.Entity.CTP (first code approach) in my MVC3 application and I did not find success unfortunately .

Also, if anyone can lead me to any posts or links on using ADO.NET in MVC3 instead of EntityFramework, it will be very helpful.

Any help would be really appreciated.

+4
source share
2 answers

Out of the box, no. There is some workaround with PostgreSQL and EF, but I have given up many attempts to get it working. I am using Telerik OpenAccess ORM. PostgreSQL is free, as the database is also free. It works with all major DBMSs. Support for the first approach to code, as well as the first approach to the database (reverse engineering). The latest version also has Perfomance and a tuning tool! Great product.

Here's a link

+3
source

When you asked the question, I think the answer would be no. The answer is probably not relevant to you now, but for others ...

Now I have to say that the answer is yes . I have an MVC3 project (then upconverted to MVC4) that uses the first code entity structure and npgsql.

I used EF6b2 and npgsql 2.0.12.

Setting the EntityFramework web.config section, the DbProviderFactories section, and the connection string correctly was the part that she worked with. I also included security dlls and npgsql in the project.

See fooobar.com/questions/778391 / ...

0
source

Source: https://habr.com/ru/post/1381627/


All Articles