Jump to content
Xtreme .Net Talk

Recommended Posts

Posted
In order for me to work with data components or other ado.net related code, wat references are necessary for me to proceed with the coding?
Can you bind the beautiful Pleiades, and can you loose the cords of Orion? - God to Job...
Posted

i see...

i did add a reference for System.Data.Dll

 

but my OleDb syntax were still underlined in blue

so i just typed Imports System.Data.OleDb and it worked...

 

i tot as long as i added the System.Data reference it should have covered the OleDb references as well, shouldn't it?

Can you bind the beautiful Pleiades, and can you loose the cords of Orion? - God to Job...
  • Administrators
Posted

It would have added the reference to the project but you would still have to specify the full class name (including namespace)

 

so the OleDBConnection is really System.Data.OleDB.OleDBConnection

 

Imports System.Data.OleDb is just a shorthand way of accessing those classes.

Posting Guidelines FAQ Post Formatting

 

Intellectuals solve problems; geniuses prevent them.

-- Albert Einstein

Posted

i see

so though i've added the reference System.Data

i still have to im port System.Data.OleDb eh?

 

wat if i just type Imports System.Data

would that suffice? or must i still specify System.Data.OleDb just becoz i'm using the OleDb data provider?

Can you bind the beautiful Pleiades, and can you loose the cords of Orion? - God to Job...
Posted

You have to import it.

And if you import only System.Data you will have to do more typing.

Better you also import System.Data.OleDb (or SqlClient)

Posted

another question

each time after using a data adapter to fill in a data set, they always have something which has a .setdatabinding, something like that, wat is the name of the object which does this operation? and wat's the purpose?

Can you bind the beautiful Pleiades, and can you loose the cords of Orion? - God to Job...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...