更新 "code first from an existing database" 的 EF 实体
Updating EF entities that are "code first from an existing database"
有没有办法在初始代码生成后更新 Entity Framework 个实体。
场景是 MySQL 应用程序是在 Visual Studio Community 2013 中开发的,并且使用了 "code first from an existing database" 向导。稍后,一个新的 table 被添加到数据库中。我用 MySQL Workbench 添加了 table。此时,如何更新实体以包含现在的数据库?
Our first step in EF7 is to provide a similar reverse engineer process to what’s available in EF6.x – and that is most likely what will be available for the initial release. We do also have some ideas around pulling in incremental updates to the model without overwriting any customization to previously generated code.
来自这个2014 October post from Microsoft
看来,增量逆向工程不是 EF6 的能力,但他们在 EF7 的这个领域有 "ideas"。
有没有办法在初始代码生成后更新 Entity Framework 个实体。
场景是 MySQL 应用程序是在 Visual Studio Community 2013 中开发的,并且使用了 "code first from an existing database" 向导。稍后,一个新的 table 被添加到数据库中。我用 MySQL Workbench 添加了 table。此时,如何更新实体以包含现在的数据库?
Our first step in EF7 is to provide a similar reverse engineer process to what’s available in EF6.x – and that is most likely what will be available for the initial release. We do also have some ideas around pulling in incremental updates to the model without overwriting any customization to previously generated code.
来自这个2014 October post from Microsoft
看来,增量逆向工程不是 EF6 的能力,但他们在 EF7 的这个领域有 "ideas"。