EntityFramework 6.2.0 预生成视图模板 - 未找到方法:HasIndex()

EntityFramework 6.2.0 Pregenrated View Templates - Method not found: HasIndex()

我在 Visual Studio 2015 中使用 EF 6.2.0 codefirst。我想将预生成的视图添加到我的项目中以提高速度。我的模型使用通过 Fluent API.

的 HasIndex() 方法定义的索引

现在尝试 运行 创建的 TT 模板时,出现错误:

Error Running transformation: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.MissingMethodException: Method not found: 'System.Data.Entity.ModelConfiguration.Configuration.IndexConfiguration System.Data.Entity.ModelConfiguration.EntityTypeConfiguration1.HasIndex(System.Linq.Expressions.Expression1>)'.

我安装了 EF Community Power Tools 扩展。

我已经按照此处的建议在 Program Files Visual Studio 路径下复制了我的 EF6 DLL:https://github.com/ErikEJ/EntityFramework6PowerTools/issues/22

还能做什么?请帮忙!

编辑: 找到解决方案!

安装这个:https://www.microsoft.com/en-us/download/details.aspx?id=55259

如前所述,您需要为 Visual Studio 更新 EF 6.2 工具 - 我建议您 post 在 EF6 Github 存储库

中提出一个问题