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

Updated Wiki: Documentation

$
0
0

What's new

Click here to see what's new in this release.

Overview

Watch the tutorial video available here: http://visualstudiogallery.msdn.microsoft.com/ee4fcff9-0c4c-4179-afd9-7a2fb90f5838

This is a visual studio extension and not a Nuget package. 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". Or you can download it here http://visualstudiogallery.msdn.microsoft.com/ee4fcff9-0c4c-4179-afd9-7a2fb90f5838
  • Select "EntityFramework Reverse POCO 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.

Problems?

Here is a list of problems people have experienced and the solutions for them:

  • Using a web site project? The solution is to create a web application (MVC4) project instead.
    If you are forced to keep your web site project, then create a separate library project for this EF poco generator, and reference that in your web site project. EF poco is able to use any connection strings within your solution.

Viewing all articles
Browse latest Browse all 1642

Latest Images

Trending Articles



Latest Images

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