Answer the question
In order to leave comments, you need to log in
CodeFirst. MVC3. membership?
I got lost in the proceedings with Membership in ASP.NET MVC3.
I just want to make it so that I would have a login by e-mail.
I want to expand the standard user model with a field that implements a 1-M relationship.
For example:
public virtual ICollection Cars; <br/>
<br/>
Как это лучше всего сделать? Неужели придется в любом случае ковырять свой MembershipProvider?
Answer the question
In order to leave comments, you need to log in
MembershipProvider is only responsible for user authentication, additional profile fields are stored by ProfileProvider. Haven't used it to store collections, but if the Cars class is serializable, then you can try. Initially, ProileProvider is designed for the Web Site project type, while MVC is a Web Application. Try the method described on stackoverflow: stackoverflow.com/questions/426609/how-to-assign-profile-values
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question