473,395 Members | 1,488 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

what is a 'provider' in .net?

Can anybody tell me exactly what a provider is? And give an example?

*** Sent via Developersdex http://www.developersdex.com ***
Aug 22 '07 #1
6 1536
On Aug 22, 9:25 am, Mike P <mike.p...@gmail.comwrote:
Can anybody tell me exactly what a provider is? And give an example?
It could mean any number of things in different contexts. What context
are you interested in?

Jon

Aug 22 '07 #2
The easiest description I can think of is a provider is an API that does
something, so you don't have to code it - like the membership provider or a
data provider for connecting to a database.

Regards

John Timney (MVP)
http://www.johntimney.com
http://www.johntimney.com/blog
"Mike P" <mi*******@gmail.comwrote in message
news:eX**************@TK2MSFTNGP02.phx.gbl...
Can anybody tell me exactly what a provider is? And give an example?

*** Sent via Developersdex http://www.developersdex.com ***

Aug 22 '07 #3
Jon,

I have inherited a project that has a number of classes with names such
as CartProvider, ClientProvider, WebServiceProvider, DataProvider. Does
this help?
*** Sent via Developersdex http://www.developersdex.com ***
Aug 22 '07 #4
In case you mean to the provider pattern so :
http://msdn2.microsoft.com/en-us/library/ms972319.aspx

--
Sincerely
Yaron Karni
http://dotnetbible.blogspot.com/
"Mike P" wrote:
Can anybody tell me exactly what a provider is? And give an example?

*** Sent via Developersdex http://www.developersdex.com ***
Aug 22 '07 #5
On Aug 22, 10:01 am, Mike P <mike.p...@gmail.comwrote:
I have inherited a project that has a number of classes with names such
as CartProvider, ClientProvider, WebServiceProvider, DataProvider. Does
this help?
Right. These will usually be similar to factories - basically they're
likely to give you a way of obtaining a Cart, Client, WebService or
some data, hiding the details of which Cart implementation is used
etc.

Jon

Aug 22 '07 #6
The Provider Pattern is based on an OO Design Pattern, called the Factory
Pattern.

Here is an example (mine) of the Simple Factory Pattern.

http://sholliday.spaces.live.com/Blog/cns!A68482B9628A842A!126.entry
As far as the Member Provider goes, basically MS provides an abstract class
to handle logins, password.
They also give you one concrete version, called the SqlMembershipProvider.

The good part is that if you don't like the default provider
(SqlMembership), you can write your own version, inheriting from the
abstract base class called MembershipProvider !
Thus if you already have a place where usernames and passwords are kept, you
don't get screwed out of using all the cool 2.0 login controls.

Sometimes people use the abstract version (MembershipProvider)
interchangably with the concrete version (SqlMembershipProvider).
Thus adding some confusion.

4 guys has good explanations of the Membership Provider and the Provider
Model as well.

At my blog post, find the
Here is another link, discussing the ASP.NET 2.0 Provider Model.
line, and follow the link.
"Mike P" <mi*******@gmail.comwrote in message
news:eX**************@TK2MSFTNGP02.phx.gbl...
Can anybody tell me exactly what a provider is? And give an example?

*** Sent via Developersdex http://www.developersdex.com ***

Aug 22 '07 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: DSISupport | last post by:
Hi, I'm planing to use the enterprise library in a new web project, and I was looking at the Security application block which came by defaul with one provider called database authentication...
1
by: Marsha | last post by:
Does anyone know how to add a new data provider to Visual Studio - to the Provider list in Server Explorer. I am using Sybase's ADO.NET Data Provider. It has been added to my GAC and appears in...
6
by: Duncan Winn | last post by:
I have written an Ole Db provider. It seems to be registered in the Operating system to a degree, but not fully, i.e. I can access it from a client that I have written. But it does not appear in...
3
by: Nick | last post by:
hi, all I just started to create my own website and I registered a new domain from yahoo, and then I want to register a webhost plan. And how to use this domain I registered? What I undertood...
0
by: tony dong | last post by:
Hi there I use vs.net 2005 with standard sql 2005 under machine\sql2005 for instant when I create webpart, the code get from quickstart as follow: <%@ Page Language="C#" %> <%@ Register...
1
by: Crazy Cat | last post by:
Hi, I created a linked server for MS SQL Server 2005 Express to an Oracle database using the OLE DB Provider for ODBC. My ODBC Source uses the Microsoft ODBC for Oracle driver. I'm using the...
4
by: techsupport | last post by:
I have some experience with .NET Remoting, as well as ASP.NET 2.0, and have been wanting to remote a custom membership and profile provider. I want to take advantage of the new controls in ASP.NET...
2
by: Balaji | last post by:
Hi All, Can I use more than one membership provider for a given website? I understand only one of them could be default one. If yes, then how to programmatically access the other membership...
5
by: Alan Silver | last post by:
Hello, Server configuration: Windows 2003 Server SP2 SQL Server 2000 SP4 ..NET v2.0.50727 just built up a new server using the same configuration as my current one. I even used the same CDs...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.