自动更新实体框架模型 [英] Auto Update entity framework model

查看:82
本文介绍了自动更新实体框架模型的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以在修改数据库后使用实体框架自动更新模型?

解决方案

p>

双击.edmx文件,模型浏览器将打开。



右键单击edmx文件,然后选择从数据库更新模型选项。




Is it possible to automatically update a model using entity framework after modifying the database?

解决方案

Yes it is !

Double click on your .edmx file, Model Browser will open up.

Right click on the edmx file and select the Update Model from Database option.

这篇关于自动更新实体框架模型的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆