gpt4 book ai didi

c# - 使用 EntityFramework.CodeTemplates 对现有数据库进行逆向工程会出错

转载 作者:太空宇宙 更新时间:2023-11-03 10:38:23 25 4
gpt4 key购买 nike

我想使用 Code First to an Existing Database 自定义导入数据库的方式我跟着procedure for installing the transform templates在 Entity Framework 文档中找到。然而,当我这样做时,我得到一个错误(见图)

enter image description here

我已经尝试了一些事情,我可以确认它是关于将 Context.cs.T4 或 EntityType.cs.T4 作为项目的一部分。我将不胜感激,因为我坚持这一点。

注意事项:

  • 使用 Visual Studio 2013
  • Entity Framework 6.1.1
  • EntityFramework.CodeTemplates.CSharp 6.1.1

最佳答案

找到了!我有 Entity Framework Power Tools Beta 4安装并导致了问题。可惜失去了那个有用的工具,但我只是禁用了它,所以可以在需要时重新打开它。

希望这对其他人有帮助,因为这很难找到。

关于c# - 使用 EntityFramework.CodeTemplates 对现有数据库进行逆向工程会出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26525307/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com