How to avoid displaying old data in DataGrid (populated using EntityFramework instance) when the project is rebuilt?

18 Views Asked by At

I am being displayed old data when I run the WPF app. I have created two dbcontexts on two different pages. When I rebuild the solution, I get the old data. I have also selected the value of "Copy to Output Directory" to "Copy if newer." It does not display old data when the app is run.

Let me know if anything related to the code is needed.

0

There are 0 best solutions below