asp.net mvc - Make a Linq-to-SQL Generated User Class Inherit from MembershipUser -


I am currently creating a custom subscription provider for my ASP.NET MVC website. I have an existing database with a user table and I am using lin-to-SQL so that this class can be automatically generated for me.

What I would like to do, this consumer class will be obtained from the passing of the class, for the class, I can easily use it in methods like GetUser in my custom subscription provider. I have all the necessary columns already in the table.

Is there any way to do this? Or am I going to go completely wrong about this?

Thank you! Generally code generation tools create such a so-called partial classes, such as:

 
public partial class user {// class definition here}

This means that you can increase the definition of that category somewhere within the same name:

  Public Partial Category Users: Membership Users {// If the Subscriber is not a Parameterless Producer with a User, then you are here Need // to Odne}  

And then you have subscribed user to user groups.


Comments

Popular posts from this blog

c# - ListView onScroll event -

PHP - get image from byte array -

Linux Terminal Problem with Non-Canonical Terminal I/O app -