Quantcast
Channel: EntityFramework Reverse POCO Code First Generator
Viewing all articles
Browse latest Browse all 1642

Updated Wiki: Home

$
0
0
Project Description
Reverse engineers an existing database and generates EntityFramework Code First POCO classes, DbContext and Configuration mappings

This has now been made into a visual studio extension. To install and use this project:
  • Use Nuget and install EntityFramework.
  • Add a connect string to your app.config. Somethine like.
<connectionStrings>
<add name="MyDbContext" providerName="System.Data.SqlClient"
connectionString="Data Source=(local);Initial Catalog=MyDatabase;Integrated Security=True;Application Name=MyApp" />
</connectionStrings>
  • In Visual Studio, right click project and select "add - new item".
  • Select Online, and search for "reverse poco"
  • Select "EntityFramework Reverse POCO Code First Generator".
  • Give the file a name, such as Database.tt and click Add.
  • Edit the Database.tt file and specify the connection string as "MyDbContext" which matches your name in app.config.
  • Save the Database.tt file, which will now generate the Database.cs file.


Viewing all articles
Browse latest Browse all 1642

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>