I want to implement a one-to-many relation in my DB with the users-table in ASP.NET MVC3.
i.e. One user has many cars.
And also I want to extend the default user-model (MembershipUser ??) with many other fields.
i.e.:
public virtual ICollection<Car> Cars;
public virtual decimal? Balance;
public virtual bool isGreatUser;
...
What is the best (right) way to do this? How can I implement this the right way?
In addition to the answer from Daryl…about the other part:
There are two ways you can accomplish this:
In either case you need to inherit from some class(ProfileProvider or MebershipUser) and extend them with your data.