Chapter 10. The Provider Model

Many of the features in both ASP.NET 2.0 and ASP.NET 3.5, including the Membership and Role Manager features, are built using the provider model. The provider model is not just an architectural model limited to ASP.NET 2.0 or ASP.NET 3.5 features; the base classes are available for you to build your own provider-based features.

This chapter covers the theory and intent behind the provider model so that you have a good idea of the patterns used by provider-based features. You will be introduced to the base provider classes, the services they provide, and the general assumptions around the ASP.NET provider model. Last, you will see some examples of how you can create your own custom feature using the provider model.

This chapter will cover the following topics:

  • Why have providers?

  • Patterns found in the Provider model.

  • Core provider classes.

  • Building a provider-based feature.

Get Professional ASP.NET 3.5 Security, Membership, and Role Management with C# and VB now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.