ASP.NET Custom Providers Presentation and Sample Code
My ASP.NET Custom Providers presentation and sample code can be downloaded from http://www.WilsonDotNet.com/Downloads/AspNetProviders.aspx. The sample code includes very simple custom providers for Membership, Roles, and SiteMap, along with an overly simplistic web app to demo them. They all use my ORMapper for database access, which means you can target most any database, but you can easily substitute your own data access pretty easily. The SiteMap provider is intentionally not very optimized since the intent is to only show a very simple example, although there is one tiny optimization included. That said, its not very hard to add some smarter caching, as I have done in my WebPortal, although you'll also need some type of cache invalidation when you add, modify, or remove pages.