Click here to Skip to main content
16,006,768 members
Home / Discussions / Visual Basic
   

Visual Basic

 
Generalcreating table adapter queries with code not designer Pin
Cory Kimble16-Jan-08 4:02
Cory Kimble16-Jan-08 4:02 
GeneralRe: creating table adapter queries with code not designer Pin
Dave Kreskowiak16-Jan-08 4:44
mveDave Kreskowiak16-Jan-08 4:44 
GeneralRe: creating table adapter queries with code not designer Pin
Cory Kimble16-Jan-08 6:16
Cory Kimble16-Jan-08 6:16 
GeneralRe: creating table adapter queries with code not designer Pin
Dave Kreskowiak16-Jan-08 6:34
mveDave Kreskowiak16-Jan-08 6:34 
GeneralRe: creating table adapter queries with code not designer Pin
Cory Kimble16-Jan-08 10:02
Cory Kimble16-Jan-08 10:02 
GeneralRe: creating table adapter queries with code not designer Pin
Dave Kreskowiak16-Jan-08 11:12
mveDave Kreskowiak16-Jan-08 11:12 
GeneralRe: creating table adapter queries with code not designer Pin
Cory Kimble18-Jan-08 7:25
Cory Kimble18-Jan-08 7:25 
GeneralRe: creating table adapter queries with code not designer Pin
Dave Kreskowiak19-Jan-08 4:46
mveDave Kreskowiak19-Jan-08 4:46 
I thought you were adding more methods to an existing designer generated dataset.

If you're writing your own data classes from scratch, you've taken on a lot of work. Normally, to implement data layers for different databases, you would create an Interface that spelled out what each version of the class (1 for SQL Server and 1 for Access) would need to implement so your code can use either class without knowing which one it was using. Everything is done through the Interface.

At a basic level, your interface would probably define at least a couple properties, like ConnectionString (get and set) and ConnectionStatus, and a few top level methods, like GetDatabases, GetTables, GetColumns, GetStoredProcs, ...



A guide to posting questions on CodeProject[^]



Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic
     2006, 2007




GeneralRe: creating table adapter queries with code not designer Pin
Cory Kimble21-Jan-08 11:16
Cory Kimble21-Jan-08 11:16 
Generalvb.net table names from sql server Pin
Cory Kimble16-Jan-08 3:55
Cory Kimble16-Jan-08 3:55 
GeneralRe: vb.net table names from sql server Pin
Dave Kreskowiak16-Jan-08 4:42
mveDave Kreskowiak16-Jan-08 4:42 
Generalautoscrollposition Pin
Smithers-Jones16-Jan-08 3:32
Smithers-Jones16-Jan-08 3:32 
GeneralRe: autoscrollposition Pin
Dave Kreskowiak16-Jan-08 4:38
mveDave Kreskowiak16-Jan-08 4:38 
GeneralRe: autoscrollposition Pin
Smithers-Jones16-Jan-08 5:29
Smithers-Jones16-Jan-08 5:29 
GeneralRe: autoscrollposition Pin
Dave Kreskowiak16-Jan-08 6:17
mveDave Kreskowiak16-Jan-08 6:17 
GeneralRe: autoscrollposition Pin
Smithers-Jones16-Jan-08 6:28
Smithers-Jones16-Jan-08 6:28 
GeneralRe: autoscrollposition Pin
Dave Kreskowiak16-Jan-08 6:45
mveDave Kreskowiak16-Jan-08 6:45 
GeneralRe: autoscrollposition Pin
Smithers-Jones16-Jan-08 7:06
Smithers-Jones16-Jan-08 7:06 
GeneralRe: autoscrollposition Pin
Smithers-Jones16-Jan-08 7:13
Smithers-Jones16-Jan-08 7:13 
GeneralRe: autoscrollposition Pin
Dave Kreskowiak16-Jan-08 10:10
mveDave Kreskowiak16-Jan-08 10:10 
QuestionGetting error message : system.data.dataexception Pin
Central_IT16-Jan-08 1:15
Central_IT16-Jan-08 1:15 
GeneralRe: Getting error message : system.data.dataexception Pin
Dave Kreskowiak16-Jan-08 2:18
mveDave Kreskowiak16-Jan-08 2:18 
QuestionRe: Getting error message : system.data.dataexception Pin
Central_IT16-Jan-08 2:49
Central_IT16-Jan-08 2:49 
GeneralRe: Getting error message : system.data.dataexception Pin
Central_IT16-Jan-08 3:04
Central_IT16-Jan-08 3:04 
GeneralRe: Getting error message : system.data.dataexception Pin
Dave Kreskowiak16-Jan-08 3:32
mveDave Kreskowiak16-Jan-08 3:32 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.