ASP.NET 2.0 Provider (inc. Membership, Role Management) Source Code Released
Microsoft has released the source code for the built-in ASP.NET 2.0 Providers (Membership, Role Management, Profiles, Web Parts, Site Navigation, etc, etc).
You can read all about it here:
http://weblogs.asp.net/scottgu/archive/2006/04/13/442772.aspxThere is also 130+ pages of whitepapers that walk through the code, the database schema, and information on how it all works. This is a great opportunity to understand both the provider design pattern as well as the specific functionality provided by these providers. Several months ago we incorporated Membership and Role management into both WebForm and WinForm applications we were developing and I sure wish I had all of this information back then !
The code is released under a permissive license that allows both commercial and non-commercial re-use of the code.