How to use Entity Framework Power Tools in Visual Studio 2015?

I used the Entity Framework in Visual Studio 2012. Create an entity model using "reverse engineering code."

But when I install Visual Studio 2015 just now and configure the NuGet EF power tools, I cannot find the β€œreverse engineer first” option.

Does anyone know what I should do?

Thank!

+44
visual-studio-2015 entity-framework vs-2015-preview
Jan 17 '15 at 11:58
source share
8 answers

Entity Framework Tools are an extension so you need to install it first. But there is a problem, supported versions of Visual Studio - 2010, 2012 and 2013. Visual Studio 2015 is in the Preview Version. I think why it is not yet included. But I have a solution that works for me in that case.

  • Download Power Tools Entity Framework
  • The .vsix file is a zip , so you can unzip it using Winrar (or any other program with these functions). Unzip only the file named extension.vsixmanifest
  • In this file (this is xml) you need to find a tag named SupportedProducts and add a version of Visual Studio 2015 (go to Help-> About Microsoft Visual Studio to check which version was installed).

    <SupportedProducts> ... <VisualStudio Version="14.0"> <Edition>Ultimate</Edition> <Edition>Community</Edition> </VisualStudio> </SupportedProducts> 
  • Overwrite the extension.vsixmanifest file in .vsix and try installing it.

Hope for this help

Update 1

I tried with this configuration ( Version : 14.0 and Edition : Ultimate) and it worked. To save time, you can download it in this link . I also added a community edition.

Update 2

Julia Lerman wrote an article on her blog on how to solve this issue as well.

Update 3

I highly recommend using EntityFramework Reverse POCO Generator when working with legacy databases. If your schema can change several times without using migrations, it is preferable to have a t4 template that can help you regenerate the model each time the database is updated. The only thing you need to do is right-click on your .tt file and run Run Custom Tool , that’s all. EF Power Tools also has an option that allows you to customize the t4 template.

+76
Jan 17 '15 at 17:26
source share

Now that VS 2015 is released, you'll want to use the EntityFramework Reverse POCO Generator https://visualstudiogallery.msdn.microsoft.com/ee4fcff9-0c4c-4179-afd9-7a2fb90f5838 . Although the instructions are slightly involved, the tricks / workarounds mentioned above are no longer needed and it works great.

+15
Aug 03 '15 at 3:21
source share

Just use the edm wizard and use the "code first from database", or if you don't like the attribute based code, use the ef reverse poco template

+3
Jan 17 '15 at 16:56
source share

I updated EF Power Tools to work in Visual Studio 2017, and I made it available in order to be demoted from my DropBox if anyone is interested:

EFPowerTools.vsix

+3
Mar 27 '17 at 12:36
source share

He even works with community publishing, installing Community.

+2
May 05 '15 at 8:00
source share

The problem that you will soon see is that even Power Edition for VS 2015 has EF power tools installed, you are probably using EF7, which has a different way of setting primary keys / configurations in general in objects. You can get POCO objects, but with the wrong namespaces (using EF 6) and overriding

 protected override void OnModelCreating(ModelBuilder modelBuilder) 

in your dbcontext to handle the relationship instead of the original

 class EntityNameMap : EntityTypeConfiguration<EntityName> 

configuration file coming from EF6.

0
May 24 '15 at 1:57
source share

step 1- download the Entity Framework Power Tools from https://visualstudiogallery.msdn.microsoft.com/72a60b14-1581-4b9b-89f2-846072eff19d .

Step 2 - Change the download file extension from .vsix to .zip.

Step 3. Extract .zip and open extension.vsixmanifest file (xml file) and add the following under the supported tags and save.

 <VisualStudio Version="14.0"> <Edition>Pro</Edition> </VisualStudio> 

Note. β€œIt doesn't matter if you have a different version.”

step 4- now Select the files in the extracted folder and write them down. Do not fasten the folder.

step 5 now change the folder name and extension (example as EFPowerTools15.vsix).

Step 6 - you should try to install the created tool only from the administrator account. otherwise, you still cannot install it.

0
Sep 15 '15 at 14:52
source share

You can simply follow this step 2 -

  • Download the file from here .

  • Follow this video tutorial ( please run code snippet to see the tutorial ) -

 <iframe width="100%" height="300" src="https://www.youtube.com/embed/yQN2Iuqb8kw" frameborder="0" allowfullscreen></iframe> 



Re -

More can be found here (written textbook).




If you have trouble viewing the tutorial, follow this link for the tutorial.

I think this is enough to install, and it will solve your problem :)

0
Dec 15 '16 at 7:36
source share



All Articles