473,806 Members | 2,605 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1549
On Aug 22, 9:25 am, Mike P <mike.p...@gmai l.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*******@gmai l.comwrote in message
news:eX******** ******@TK2MSFTN GP02.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, WebServiceProvi der, 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...@gmai l.comwrote:
I have inherited a project that has a number of classes with names such
as CartProvider, ClientProvider, WebServiceProvi der, 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.space s.live.com/Blog/cns!A68482B9628 A842A!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 SqlMembershipPr ovider.

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 MembershipProvi der !
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 (MembershipProv ider)
interchangably with the concrete version (SqlMembershipP rovider).
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*******@gmai l.comwrote in message
news:eX******** ******@TK2MSFTN GP02.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
2977
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 provider. I want to develop new authentication provider that will work with LADP. My question where can I find a documentation and code samples on how to develop a new authentication provider? and how to entegrate this new provider with the...
1
3743
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 my References. However, I would like to add the provider to the Provider list in Server Explorer. Thanks. ~Marsha
6
14119
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 Database Explorer's list of viable Ole Db drivers... Any suggestions??
3
1607
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 about transfer domain is I can transfer the domain to the webhost vendor, and they can config it on their server to point this domain to my web pages, is this right? Is the transfer domain free? Thanks.
0
4360
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 Src="WebPartPageMenu.ascx" TagName="WebPartPageMenu" TagPrefix="uc1" %> <html> <head id="Head1" runat="server"> <title>Web Part Page</title>
1
4758
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 OLE DB Provider for ODBC instead of the Oracle OLE DB providers because those don't handle Oracle's Numeric Data Type well. When I set this up yesterday it worked fine. However I log in today and attempt to run sp_tables_exec against my linked...
4
2247
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.0 such as Login, Loginuser, Loginview, etc. The ASP.NET provider model requires entries in the web.config for a 'connectionStringName', which I understand is utilized to connect to the data source. Problem is the client machine (machine A)...
2
14163
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 provider? For e.g. lets say I have a SQLMembership provider and OracleMembership provider. SQL would be my default provider. During authentication, based on the value of an additional parameter in the login screen, I need to validate against SQL or...
5
2546
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 and registration keys, so I'm certain that the two machines are as similar as they can be.
0
9719
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10623
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10371
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
7650
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6877
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5546
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5683
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4330
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
3010
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.