fkheng Posted May 22, 2003 Posted May 22, 2003 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? Quote Can you bind the beautiful Pleiades, and can you loose the cords of Orion? - God to Job...
Administrators PlausiblyDamp Posted May 22, 2003 Administrators Posted May 22, 2003 System.Data.dll Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
APaule Posted May 23, 2003 Posted May 23, 2003 plus: System.Data.OleDb System.Data.SqlClient depending on whether you'r connecting to SQL Server or something else. Quote
Administrators PlausiblyDamp Posted May 23, 2003 Administrators Posted May 23, 2003 The namespaces System.Data.OleDB and System.Data.SqlClient are part of the physical file System.Data.Dll Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
fkheng Posted May 23, 2003 Author Posted May 23, 2003 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? Quote Can you bind the beautiful Pleiades, and can you loose the cords of Orion? - God to Job...
Administrators PlausiblyDamp Posted May 23, 2003 Administrators Posted May 23, 2003 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. Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
fkheng Posted May 23, 2003 Author Posted May 23, 2003 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? Quote Can you bind the beautiful Pleiades, and can you loose the cords of Orion? - God to Job...
APaule Posted May 23, 2003 Posted May 23, 2003 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) Quote
fkheng Posted May 24, 2003 Author Posted May 24, 2003 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? Quote Can you bind the beautiful Pleiades, and can you loose the cords of Orion? - God to Job...
APaule Posted May 28, 2003 Posted May 28, 2003 This is for binding data to controls. For more information browse the objectcatalog and display help for the control.databindings. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.