Make a Linq-to-SQL Generated User Class Inherit from MembershipUser
Posted
by Adam Albrecht
on Stack Overflow
See other posts from Stack Overflow
or by Adam Albrecht
Published on 2009-07-23T17:12:23Z
Indexed on
2010/06/09
9:12 UTC
Read the original article
Hit count: 329
I am currently building a custom Membership Provider for my Asp.net MVC website. I have an existing database with a Users table and I'm using Linq-to-Sql to automatically generates this class for me.
What I would like to do is have this generated User class inherit from the MembershipUser class so I can more easily use it in my custom Membership Provider in methods such as GetUser. I already have all the necessary columns in the table.
Is there any way to do this? Or am I going about this the completely wrong way?
Thanks!
© Stack Overflow or respective owner