Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What does a provider class mean in the .NET world?

Tags:

.net

provider

There are many classes having this provider suffix. (Data,membership,modelmetadata,...).

When should be a class called as a provider class ?

like image 323
user137348 Avatar asked Mar 19 '10 09:03

user137348


1 Answers

Providers mostly are between your logic and data stores of any kind (database, xml, etc.). MSDN mentions:

Providers abstract storage media in much the same way that device drivers abstract hardware devices.

For more information: Microsoft ASP.NET 2.0 Providers: Introduction

For example: In stead of working with a database or XML, you want to work with flat file storage on a disk somewhere within your network. To manage this you build a custom provider and use it within your logic to save the data.

like image 114
Joop Avatar answered Sep 28 '22 08:09

Joop