EF的EDM如何跟踪DB-first的变化 [英] How does EDM of EF tracks changes in DB-first

查看:85
本文介绍了EF的EDM如何跟踪DB-first的变化的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在EF中使用db-first,EDM设计器根据我的数据库表自动生成实体类,但是当我在这些表中添加新列时,实体类不会改变,为什么?



我尝试了什么:



我在ef 6.0中创建一个edmx文件,我使用db首先,我想更改表格,但实体类不会改变...

I use db-first in EF, EDM designer auto generates entity classes according to my database table, but when i add new columns in these tables, the entity classes doesn't change, why?

What I have tried:

I create a edmx file in ef 6.0, and i use db first, i want to change tables, but entity classes doesn't change...

推荐答案

Google就是答案..



请参阅以下文章。

更改跟踪实体框架



c# - 更改跟踪如何在实体框架中工作 - 堆栈溢出
Google is the answer..

Refer below articles.
Change Tracking in Entity Framework

c# - How change tracking works in Entity Framework - Stack Overflow


这篇关于EF的EDM如何跟踪DB-first的变化的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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