Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Considering that you do not specify if you want to store that data in your database or not, it's hard to answer exactly. Assuming you do want that, you'll need to create a MembershipUser and a MembershipProvider to handle your own MembershipUser which contains your name and object. </p> <p>Since your object most likely itself contains a number of values, you must sort out how to store that in the database. A rather simple solution would be to serialize that object into json or xml when storing it, and deserialize it when your MembershipProvider gets your custom MembershipUser from the database again. There are many ways to do this and i'm sure you'll find yours.</p> <p>So basically, inheriting the MySQL provider and overriding the various create and get user methods should get the job done. Note that you do not have to rewrite the entire MembershipProvider.</p> <p>The nuts and bolts of it all can be found in the MSDN library at <a href="http://msdn.microsoft.com/en-us/library/ms366730(v=VS.85).aspx" rel="nofollow">http://msdn.microsoft.com/en-us/library/ms366730(v=VS.85).aspx</a> (How to: Implement a Custom Membership User)</p> <p>You can also read up on ScottGu's blog, where he provides source samples for providers: <a href="http://weblogs.asp.net/scottgu/archive/2006/04/13/Source-Code-for-the-Built_2D00_in-ASP.NET-2.0-Providers-Now-Available-for-Download.aspx" rel="nofollow">http://weblogs.asp.net/scottgu/archive/2006/04/13/Source-Code-for-the-Built_2D00_in-ASP.NET-2.0-Providers-Now-Available-for-Download.aspx</a></p> <p>However, you are probably better off getting the source for your specific provider to extend it.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload