title: What's the simplest way to use authentication in ASP.NET with Entity Framework?
body: <p>I'm new to ASP.NET/Entity Framework, and am trying to get simple signup/login working with EF. Basically, I want to create a new user with custom columns in a table that's accessible from my Entity Framework database context. Something along the lines of:</p>
  
  <pre><code>Auth.CreateUser(Username, Password, new { "Email" = Email, "Realname" = Realname, "JoinDate" = JoinDate });
  DbContext db = new DbContext();
  var User = db.Users.Where(a =&gt; a.Email = "some@email.com").FirstOrDefault();
  string Realname = User.Realname;
  </code></pre>
  
  <p>Should I use SimpleMembership or what with it? And how would I make it accessible from EF? I really want to use one of the built-in membership providers, since the last one I did was a custom one (in PHP) and it got kind of messy.
  Thanks!</p>