Search code examples
.netasp.net-mvc-3membershipuserid

MVC3 and User Management


I'm a newbie in .NET framework but have a vast experience in other MVC based frameworks like Symfony and Zend frameworks.

I have an application which requires workshop participants to register and then select workshops they'd like to participate in so I have 3 models i.e. Workshop, Participant and Enrollment which basically has WorkshopID and ParticipantID.

How do i integrate the exisiting Membership or is there any other way to record the ParticipantID into the Enrollments after they've registered and selected their desired workshops? It would've been a one minute thing with Symfony or Zend but cannot figure out how to scaffold the registered users and their selections


Solution

  • If you want to link your participants with membership users the best way is to add a Guid column (userId) to your Participant table and link it with Primary Key on aspnet_Users table. That way you link your domain participant with ASP.NET user.