This blog is a knowledge base...where I clip cool tricks and urls

IDataProvider - Implement Provider Model C#

In the CreateDataAdapter method you will have to do a couple of things to create an instance of a specific data adapter. First you will need to initialize the appropriate provider based on the information in the configuration file. The InitProvider method is responsible for this and will be shown in the next section. After the appropriate DataProvider class is loaded the CreateDataAdapter method on that specific provider will be called. This is where the SqlDataAdapter or the OleDbDataAdapter or the OracleDataAdapter is created.
public static IDbDataAdapter CreateDataAdapter(
 string SQL, string ConnectString)
{
  IDbDataAdapter da;

  // Make sure provider is created
  InitProvider();

  da = DataProvider.CreateDataAdapter();

  da.SelectCommand = CreateCommand(SQL, 
   ConnectString, false);

  return da;
}

In Visual Basic

 blog it

6 comments:

pay per head service said...

This is an interesting..... great information found here... Thanks very much!

Shalini said...

Interesting blog about Idataprovider which attracted me more.Spend a worthful time.keep updating more.
Digital marketing company in Chennai

Unknown said...

written in very creative way and it also conveys useful information.

Selenium Training in Chennai

Anonymous said...

I am Searching for this article. Its really Great HelpFull Thanks
PreOwnedphones X
PreOwnedphones X
PreOwnedphones X
PreOwnedphones X
PreOwnedphones X

zain jahangir said...

For Example
Wow Great i am in searching of this Post . You Explain the Topic Very Well . Thanks And you can also know about curtains by Visit !
this site

zain jahangir said...

Wow Great i am in searching of this Post . You Explain the Topic Very Well . Thanks And you can also know about curtains by Visit this site