registering provider

  • Thread starter Thread starter Andrzej Kaczmarczyk
  • Start date Start date
A

Andrzej Kaczmarczyk

Hi, if this is not the appropraite list, forigve me and point to the correct
one.

I have a custom .NET Provider implementation that follows all guidelines.
I can connect tot he database, fill dataset, use it in all kind of query
activity.
I can add it as a component onto form during desaign and graphically create
connection.

However I cannot register it in the Visual Studio 2005, so I could use it
from "New Connection", "New DataSource" wizards.

How to achieve it?

thx, CUIN Kaczy
 
It is already sitting there nicely.

I mean following sequence:
Add New Item -> Dataset -> Add -> Server Explorer -> (right Click) Data
Connection -> Add Connection

Here in Vs Beta 2 you have a window listing, Acces, SQL Server, Oracle and
ODBC Data Source and <unspecified> if you click on one the combo below will
refresh listing apropriate Data Providers.

Now I want to either click on <unspecified> and select in combo
MyNETProvider (which should launch the visual connection string designer) or
add another option to the list above MyDataSource with MyNETProvider being
the only choice in the combo.

How to achieve that?

CUIN Kaczy
 
Hmm .. so I know what window you are talking about ..

How do you access that window?

My half baked answer is - all that sits in the machine.config, but can be
specified at any config file level (machine,app etc.) But I'd like to be
sure :), so .. what window are we talking about?

- Sahil Malik [MVP]
http://codebetter.com/blogs/sahil.malik/
 
Now you got me *puzzled*

I've written already:
""
but I can also access it with simplier way:
Data -> Add New DataSource -> Next -> DataBase -> Next -> New Connection

all in Windows XP SP2, Visual Studio 2005 Pro Beta 2 (feb ctp), Visual C#,
Windows Forms Application, but I believe the same apply for any VS 2005,
console, asp or any other type of application in all languages

Is it what you asked for?

CUIN Kaczy
 
Okay - that I am not quite sure of.

I did try investigating a bit, I used filemon and regmon to try and see
where the heck does That dialog get populated from. My best guess is, it
comes from some precompiled dll within the VStudio binaries, and maybe using
reflection it populates that list - but really - that is just my
guess/detective work.

Sorry this is a softie question. I can raise it to Microsoft folks, do you
want me to?

- Sahil Malik [MVP]
http://codebetter.com/blogs/sahil.malik/
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top