简体   繁体   中英

how can i update my datagrid when any modification done in database using entity framework in wpf

当我使用实体框架将数据库与我的应用程序绑定时,它会在数据网格上显示数据,但是当我在外部对数据库进行更改时,它不会反映在数据网格中。在数据库中,它会自动更新数据网格。

Update you edmx file. When you modify DB you need to update your.edmx file. Follow following link to update edmx.

How do you update an edmx file with database changes?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM