Installed EntityFramework6.Npgsql

Changed ConnectionString in Web.config

Added a PostgreSQL provider ... generally did everything as suggested here https://gist.github.com/raspi/8927531

But when you try to create a table in the database from the EF model, it pops up a window asking you to connect to the database. It would be okay, but among the listed providers PostgreSQL is not there. Advise what to do. If I have provided insufficient information, tell me what you need.

  • Do you have a driver on your PC to work with PostgreSQL? - iluxa1810
  • @ iluxa1810, is it possible in more detail? Well, I installed the DBMS itself ... - iRumba

1 answer 1

In English, SO it is written that you cannot create a database from Code First and you need to do it with pens.

  • Unfortunately did not decide. :( - iRumba
  • @PavelMayorov, I first recommended the driver to try to install. But it did not help and I edited my question. His comments on the first answer. - iluxa1810
  • Please try to publish detailed answers containing a specific example of the minimum solution, supplementing them with a link to the source. Answers –references (as well as comments) do not add knowledge to the Runet. - Nicolas Chabanovsky ♦
  • @NicolasChabanovsky, so I attached the link as a proof, and copied the general essence of the answer in response that there is no such type of functionality. - iluxa1810
  • Well, let's say you can't create a database, but why doesn't my connection string in web.config work? The mvc application is created not empty, there is some kind of base and a connection string to it. In theory, replacing the connection string and running it, I should have received an exception from the DBMS, and instead I get an exception that there is no such provider. And yes, in that answer, the link to which you gave, the old version of libraries is used, and the most recent comment in this answer says that the new versions have all the rules. And I have the latest versions. - iRumba