I am trying to implement a custom membership provider in ASP.NET MVC 3 with the Enitty Framework. For user data, I created a User class that contains all the login information and a few more. When I tried to implement MemberhipProvider, there were some methods that I need to implement that have the MemberhipUser parameter in the signature:
public override void UpdateUser(MembershipUser user)
I know that I can make my User class inherit from the MembershipUser class, and that won't be a problem. But when I tried to inherit it, I could not set values ββfor readonly properties such as email and others.
Is there a way that these methods can accept an object of type User? Or maybe there is another approach to this?
Aaron source
share