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
  • 17,604
  • 4
  • 39
  • 44
Anton Gildebrand
  • 3,521
  • 12
  • 47
  • 84

0 Answers0