简体   繁体   English

当使用 wpf 中的实体框架在数据库中进行任何修改时,如何更新我的数据网格

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

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

Update you edmx file.更新您的 edmx 文件。 When you modify DB you need to update your.edmx file.当您修改 DB 时,您需要更新您的 .edmx 文件。 Follow following link to update edmx.按照以下链接更新 edmx。

How do you update an edmx file with database changes? 如何使用数据库更改更新 edmx 文件?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何使用Entity Framework刷新WPF中的datagrid - How to refresh datagrid in WPF using Entity Framework 实现MVVM时,如何更新WPF的数据网格中的行? (没有任何按钮) - How Can I update a row in WPF's datagrid when I 'm implementing MVVM ? ( without any Button) 如何在 WPF 中使用 Datagrid 更新数据库 - How to Update Database using Datagrid in WPF 数据网格,实体框架WPF应用程序中的“更新”按钮 - Update button in datagrid, entity framework WPF Application 无法使用Entity Framework更新数据库中的行…? - Can't update rows in my database using Entity Framework…? 如何使用实体框架或任何其他框架将已经存在的数据库加载到UWP中 - How can I load an already existing database into a UWP using entity framework or any other framework WPF 使用 Entity Framework Core 模型时数据网格未更新 - WPF datagrid not updating when using Entity Framework Core Models 使用实体框架在WPF DataGrid中级联组合框 - cascading comboboxes in wpf datagrid using entity framework 使用实体框架在 .NET Core 3.1 中进行迁移后,如何更新数据库 model? - How can I update the database model after doing a migration in .NET Core 3.1 using Entity Framework? 无法使用WPF Datagrid和DataAdapter更新本地数据库 - Can't update Local Database using WPF Datagrid & DataAdapter
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM