I have the following context:
public class DataContext : DbContext { /// <summary> /// Gets or sets Addresses. /// </summary> public DbSet<Address> Addresses { get; set; } /// <summary> /// Gets or sets Users. /// </summary> public DbSet<Users> Users { get; set; } }
I, my application user, can modify the data in user data, and then he can discard the changes. The best way to do this is to update the DataContext from the database. But DbContext does not have a Refresh method. How to update my DataContext ?
source share