How to implement ASP.NET membership provider in my domain model

Posted by Kjensen on Stack Overflow See other posts from Stack Overflow or by Kjensen
Published on 2009-05-01T12:17:04Z Indexed on 2010/05/18 7:20 UTC
Read the original article Hit count: 321

In a website, I need to integrate membership and authentication. So I want to use the functionality of ASP.NET Membership, but I have other custom stuff, that a "user" has to do.

So I am sitting here with my pencil and paper, drawing lines for my domain model... And how can I best utilize the ASP.Net membership, but extend it to fill my needs?

Should I create a class that inherits from a MembershipUser and extend it with my own properties and methods (and save this in a seperate table). Or should I let the MembershipUser be a property on my custom User/Client object?

What would be a good solid way to do this?

© Stack Overflow or respective owner

Related posts about asp.net-membership

Related posts about ASP.NET