title: Avoid Multiple calls to GetUser when using ASP.NET Membership
body: <p>I am using ASP.NET Membership in an ASP.NET MVC 3 Web application project.</p>
  
  <p>I have installed the ASP.NET Membership tables using <code>Aspnet_regsql.exe</code> and now my main <code>userTable</code> has a foriegn key called "userID" which points to the "UserId" of aspnet_Users.</p>
  
  <p>This "userTable" is connected to many tables. So for every operation now I require the "UserId" from aspnet_User using the username with which the user has logged in.</p>
  
  <p>For this I use </p>
  
  <pre><code> MembershipUser user = Membership.Provider.GetUser(username, true);
  </code></pre>
  
  <p>now for each and every operation I have to make this call and get <code>user.ProviderUserKey</code> to continue with my other operations.</p>
  
  <p>I am thinking there has to be a better way to do this. Is any any built in way to do this ?</p>