简体   繁体   中英

Entity Framework: detect and load table changes

There is MSSQL Express Server and several apps are using it.

App1 adds or updates rows in table1.

Table1 must be loaded in App2. And app2 should use valid data any time. How I can reload table1 data if changes are occured?

using Entity Framework 6.

image

App2 needs to "check" the table1 for new data and reload it. You can perform a select on table 1 and look for new rows by ID for example.

It simple as it looks .

Case 1 : when there is a change in data in table . upon you access to the content ON-LOAD or Post you will get updated data automatically .

Case 2 : When there are changes in columns or table schema etc . you just open edmx after than on the panel where all tables dispalyed Right click and Click Update option and then build which will auto generate entities automatically .

Regards

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