Generate the EDMX backing files in Visual Studio 2019

时间:2019-04-17 00:30:24

标签: edmx ef-database-first visual-studio-2019 database-first

After modifying an EDMX in Visual Studio 2019, it saves the EDMX properly but does not generate the C# files.

This is a database first functionality, is there a new trick in VS2019 to actually generate the C# files on save?

1 个答案:

答案 0 :(得分:0)

我本打算向Microsoft写反馈,但是在他们的网络上也有同样的问题。问题是

  

保存EDMX代码后未生成VS 2019 Preview2-Preview 4.2

它已标记为已解决VS2019 16.1

this SO post

该错误中还提到您可以在所有EDMX和* .tt文件上手动运行自定义工具以生成模板。这行得通。

https://github.com/aspnet/EntityFramework6/issues/705