0

I have a static method that looks like this

public static User GetUser(Guid? UserID = null)
{
    UserID = UserID ?? GetUserID();
    return (from u in gdb.Users where u.UserID == UserID select u).Single();
}

Problem is, it always returns the same result. As you can see, it get's it's data from my DB. Even when i change the data in the DB, it returns the same. It's first when i restart the debugging as it starts getting the latest values from the DB. What could cause this? I don't havy outputcache or similiar anywhere.

Robbie
  • 18,750
  • 4
  • 41
  • 45
Anton Gildebrand
  • 3,641
  • 12
  • 50
  • 86

0 Answers0