When I open my program and try to get all my users the following code will be executed:
public static List<User> GetAllUsers()
{
return db.Users.OrderBy(x => x.ID).ToList();
}
If I go to my SQL Server Management Studio and change some value and redo GetAllUsers(); the data is still the same. Is there any way to refresh the data? Best would be to even refresh all (I have other classes in my DbContext) so i actually reload everything.