Installing EF Power Tools into VS2015

TLDR: If you don’t want to do the tasks (even though they are so easy) you can download the updated VSIX I created from here.

The Entity Framework Power Tools extension for Visual Studio has been around for quite some time and is still called a Beta. I cannot live without it’s “View Entity Data Model (Read-Only)” feature which I used to validate my code first models.

But if you try to install the extension into Visual Studio 2015, you won’t find it.

Checking the extension in Visual Studio Gallery, you’ll see that it hasn’t been updated to install into VS2015.

The fix is nothing more than making it know about VS2015. There are no other compatibility problems that I have experienced. Modifying an extensions installation package (which is just a zip file!) to be aware of another version of Visual Studio is pretty easy. Here are the steps to get the EF Power Tools into VS2015.

Download the extension from the Visual Studio Gallery page.

Find the file

and change it’s extension to zip.

Extract the files from the zip file.

Open the extension.vsixmanifest file in a text editor and find the Supported Products section.

And copy paste one of the Visual studio elements, changing the version to 14.0. I have the Enterprise version but didn’t bother changing it from Pro here and it didn’t seem to be a problem.

Now you have to reverse your steps in order to recreate the VSIX file.

Select the files in the extracted folder and zip them. Don’t zip the folder. The files have to be at the root. (Guess how I learned that! ) I named my zip file VSPowerTools15.zip

Rename the file to have the vsix extension.

Run the file right from here.

Voila!

If Visual Studio was open, you’ll have to restart to get this to kick in.

Also you’ll see Entity Framework Power Tools listed in the installed extensions when you look at the About section of Visual Studio 2015.

I accidentally mistook this for something it was NOT and (embarrassingly) tweeted it. I had forgotten that I had done this for the VS2015 preview. Then I installed VS2015 RTM on top of the preview and that picked up all of the installed extensions. When I saw the power tools listed in About, I thought they had a) finally gotten rid of the “Beta” tag and b) installed automatically with VS2015. When I realized the extension was installed, I uninstalled that and indeed the tool went away. So for anyone who saw that tweet…. sorry! Guilty as charged …

时间: 2024-08-07 00:14:53

Installing EF Power Tools into VS2015的相关文章

VS2015安装EF Power Tools

前言 最近在研究EF觉得EF Power Tools比较强大,可以利用其特性来进行Code First模型验证等等,本以为在VS2015扩展和更新中能找到EF Power Tools,结果未找到,还得去官网下载,下面是安装步骤.供需要在VS2015上安装VS Power Tools的园友作一个参考. 第一步 去官网下载,这是链接 EF Power Tools 第二步 将下载的EFPowerTools.vsix扩展名改为zip 第三步 解压压缩文件,如下: 第四步 打开压缩文件中的extensio

EF Power Tools 数据库逆向生成时T4模板修改

VS2013上使用EF Power Tools的Reverse Engineer Code First逆向生成. 发现数据库中的decimal(18, 4)字段在生成的mapping类中没有精度和小数位数. 这使得通过EF保存数据时,自动生成的SQL缺省使用了decimal(18, 2). 还好EF Power Tools提供了Customize Reverse Engineer Templates ,并给出了它使用的tt文件. 打开它的Mapping.tt 看到 if (type.ClrEqu

EF Power Tools的Reverse Engineer Code First逆向生成Model时处理计算字段

VS2013上使用EF Power Tools的Reverse Engineer Code First逆向生成Model时,没有处理计算字段.在保存实体时会出现错误. 可以通过修改Mapping.tt解决. 打开Mapping.tt,找到 foreach (var prop in efHost.EntityType.Properties) { var type = (PrimitiveType)prop.TypeUsage.EdmType; var isKey = efHost.EntityTy

ef code first transform,add ef power tools add-in,add tangible t4 editor for enhancement.

use ef power tools, as to .edmx file,right click at view, choose generate database from model, then copy the generated sql text, run the text in database, use ef power tools add in to generate mappings for code first usage.

自己动手,让Entity Framework Power Tools在VS2015重放光彩

Entity Framework Power Tools是一个由EntityFramework开发小组提供的工具,它可以从现有数据库生成Fluent款式的Code First代码. VS Gallery主页:https://visualstudiogallery.msdn.microsoft.com/72a60b14-1581-4b9b-89f2-846072eff19d 今天新装了Win10顺带把VS也换成了2015,然后高高兴兴的去扩展里面所有这个工具,居然搜索不到?!赶紧上项目主页查看这才

VS2015下安装Entity Framework Power Tools

Entity Framework Power Tools是一个由EntityFramework开发小组提供的工具,它可以从现有数据库生成Fluent款式的Code First代码. 怀着激动的心情安装了专业版的win10和VS2015,准备安装Entity Framework Power Tools(一下简称EF)的时候傻了,怎么搜索都没有,百度了一下才发现VS2015不支持EF, 继续发现有教程能解决,居然简单的修改下安装包就可以让它在2015上安装了,具体实现方法如下: 官方下载扩展安装包,

Entity Framework Code-First(23):Entity Framework Power Tools

Entity Framework Power Tools: Entity Framework Power Tools (currently in beta 3) has been released. EF Power Tools is useful mainly in reverse engineering and generating read-only entity data model for code-first. Download and install Power Tools fro

Entity Framework Code First ---EF Power Tool MySql

关于如何使用EF Power Tool的介绍请看 http://www.cnblogs.com/LingzhiSun/archive/2011/05/24/EFPowerTool_1.html, 这里不再啰嗦. MySql里有个默认的范例数据库 world, 里面有三个表, 下载Entity Framework Power Tools 安装包, 现在已经是Beta3版本,http://visualstudiogallery.msdn.microsoft.com/72a60b14-1581-4b9

EF6 Power Tools的妙用和问题

环境:vs2013+EF:6.1.3.0+Power Tools:Beta 4 power tools:是一个反向工程,在已有数据库的情况下,可以利用它生成Code Frist模式的代码. 问题: 它是整个库生成的,问题是它会把视图也当成表一样对待,生成实体,如下图: 也会在Map目录下生成映射文件,如下图: 然后,我对它进行了删除操作,生成迁移文件之后,update-database的时候,提示:不能对视图进行Drop Table操作,要使用Drop View.这时打开生成的迁移文件,会发现它