Simple Membership Provider Relationships
-
01-07-2021 - |
Question
In ASP.NET MVC 3 with Default Membership Provider I would create relationships with
public virtual Guid UserGuid { get; set; }
public virtual MembershipUser User
{
get
{
return Membership.GetUser(UserGuid);
}
}
In ASP.NET MVC 4 with Simple Membership Provider what is the equivalent method of Membership.GetUser() and class MembershipUser that are compatible with SMP?
Solution
you need the websecurity class http://www.w3schools.com/aspnet/webpages_ref_websecurity.asp
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow