Entity Framework 6 Power Tools not working with Visual Studio Community 2017 - frameworks

I am just getting started with Entity Framework and have hit a roadblock. I am using Visual Studio Community 2017 and just installed "Entity Framework 6 Power Tools Community Edition".. restarted Visual Studio and it shows me context menu of Entity Framework but when I click on View Entity Data Model (Read-only) option on a class derived from DBContext, it is giving me following error:
"System.InvalidCastException: Unable to cast COM object of type 'System.__ComObject' to interface type 'Microsoft.VisualStudio.Shell.Interop.IVsAggregatableProject'."

My bad. I added a Project type Class Library (.Net Standard) instead of Class Library (.Net framework), changing this solved the problem

Related

Visual Studio 2012 with .NET 4 Framewrk install Entity Framework 6 tools for Visual Studio 2012

As mentioned in the title I need to modify a very old project. It uses .NET 4 Framework and connects to a local SQLite database. I used Visual Studio 2012 to avoid compatibility problems.
I cannot open the .EDMX file - I get this error:
Error 10027: The XML namespace for the conceptual model's Schema element is not supported on this project's target framework version.
I tried to install Entity Framework 6 because I read that should resolve the problem, but I'm not able to find it anywhere.
How can I fix this problem?

Entity Framework Power Tools not generating entity data model in visual studio 2015

I have installed EF Power tools on VS 2015 as per this SO answer
But when I try to generate entity data model for a dbcontext, I get error.
I have all the relevant assembly references.
What am I missing.

vs 2015 Error adding entity data model

I get the following error trying to add a new entity model. Any ideas on how to troubleshoot or fix this?
An error occurred loading the entity data model tools package. failed
to load entity data model tools package. the result is -2147024894
Visual Studio 2015 Update 1
v14.0.24720.00
Entity Framework Nuget Package
v6.1.3
Microsoft .net 4.6.0
UPDATE
I tried installing this, it worked once and then after rebooting a couple days later no longer fixed the issue. It's back:
I was able to fix this by downloading the entity framework 6.x t4 templates and installing them from this: https://visualstudiogallery.msdn.microsoft.com/18a7db90-6705-4d19-9dd1-0a6c23d0751f?SRC=VSIDE
I was able to get around this error by changing the framework from version 4.x to 4.5 on my project and then restarting visual studio. It took some tinkering but it appears this occurs because the Visual Studio 2015 Entity Model Package wizard is dependent on something in the 4.5 framework.

EF reverse engineer code first doesn't work in VS 2015

I installed EF Power tools in VS 2015 and i have entity framework nuget package version 6.1.3 and when i try to use reverse engineer code first, the tool doesn't work at all.
The tool creates the context class only with no table classes or mapping folder as it was working in VS 2013.
Any fix or workaround for this bug ?
You can just use the built-in EDM Wizard (Add New ADO.NET Entity data Model) to generate Code First from Database code. You could also consider using the "EF Reverse POCO Template" available on the VS gallery (in Tools/Extensions and Updates)

Entity Framework Power Tools does not appear in VS 2012

I have installed EntityFramework 6.01 and have added a reference to my project. I closed Visual Studio 2012 and I then installed EF Power Tools Beta 4.
I re-opened Visual Studio 2012 and right-clicked my project containing dbContext. No entry appears in the context menu for Entity Framework. No error messages occurred during installation.
Are there additional pre-requisites to using EF Power Tools?
I think I have discovered the solution. My company uses VB.net as the standard development language. As a test, I started a C# project. Entity Framework Power Tools are fully present in the C# project. It appears that Entity Framework Power Tools are not yet available in VB.net projects.
Try right clicking on the project. I just looked at the beta 4 description and it does not reference EF 6. But the reverse engineer classes from database should show up with a right click on the project, indicating that at least the power tools installed correctly. These are the only comparability issues I could find:
Generate Views won’t work with prerelease versions of EF6.
It will, however, work with the RTM version when it’s released.
View Entity Data Model won’t work with EF6 on Visual Studio 2010.
Beta 4 updates the Power Tools to work with Entity Framework 6 and Visual Studio 2013. The following issues have also been fixed in this release.
Power Tools don't work when project is under a solution folder
Power Tools stop working when EF.dll is loaded into VS
Specific info found on the ado.net blog on msdn