Tool to generate poco

Asked

Viewed 179 times

0

I have a postgre bank with several tables and I need to generate their classes. Is there a free tool that manages the pocos to be used with EF6? I searched but did not find. I am using VS2015 and postgres latest version.

2 answers

1


I created a package in nuget.org called "Cap" that does what I need, generates the templates and context class to use with Entity Framework 6 and Postgresql. Link to Chap.

1

The visual studio itself generates, but you have to work with the Database First model.

Add an ADO.NET Entity Data Model, and in the next Wizard window, select Code First from Database.

  • Which file did you use? I used npgsql, but the option does not appear in Wizard.

  • I did it using the native visual studio pro SQL Server, but if npgsql does not appear in providers, you have to see if the version with Entity support is installed, and I don’t know if there is another tool in VS that has to be installed.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.