Click here to Skip to main content
15,898,134 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Best Practices to work with databases using VB .NET Pin
Christian Graus21-Aug-07 20:02
protectorChristian Graus21-Aug-07 20:02 
GeneralRe: Best Practices to work with databases using VB .NET Pin
RaveRare21-Aug-07 20:21
RaveRare21-Aug-07 20:21 
GeneralRe: Best Practices to work with databases using VB .NET Pin
Mark Churchill21-Aug-07 20:54
Mark Churchill21-Aug-07 20:54 
GeneralRe: Best Practices to work with databases using VB .NET Pin
RaveRare21-Aug-07 21:33
RaveRare21-Aug-07 21:33 
GeneralRe: Best Practices to work with databases using VB .NET Pin
Christian Graus21-Aug-07 21:48
protectorChristian Graus21-Aug-07 21:48 
GeneralRe: Best Practices to work with databases using VB .NET Pin
MartyK200721-Aug-07 22:23
MartyK200721-Aug-07 22:23 
GeneralRe: Best Practices to work with databases using VB .NET Pin
Mark Churchill22-Aug-07 0:20
Mark Churchill22-Aug-07 0:20 
GeneralRe: Best Practices to work with databases using VB .NET Pin
MartyK200722-Aug-07 0:49
MartyK200722-Aug-07 0:49 
Mark Churchill wrote:
your data layer that ends up restricting how you do things in the UI


agreed
but you can do it another way too.

for example my data layer has a factory class that contains a getdataset command
where I pass the datarequest command (in the form of MS SQL) , the connection as an object and the dataprovider type)

there are families of classes for each dataprovider

so for example I have an OracleViaWebservice family which takes the MS SQL command, converts it to oracle SQL, uses the connectio class to find identify the correct web service location and passes the request to the web service which then uses the oracle connectstring (stored in that connection class) and issues the comand aainst an oracle DB before returning the result.

now all that took time but now its written Its very extendable.
If I come across a new dataprovider (ie webservice to Siebel for example) I just create a new family of generic classes to handle the process and away I go.
If I come across another type of dataaccess (ie instead of processing a dataset, I need to process a er DataReader - yeah I know its a reach) then I just add the procesing code for a datareader to each existing family of classes


I find that the ongoing maintenance of my data layer is practically non existant now and its generic enough not to restrict my business layer.

Martin


life is a bowl of cherries
go on take a byte

QuestionADODB.RecordSet.RecordCount always return 0 or -1 Pin
vbDigger'z21-Aug-07 16:36
vbDigger'z21-Aug-07 16:36 
AnswerRe: ADODB.RecordSet.RecordCount always return 0 or -1 Pin
jchigg200022-Aug-07 9:04
jchigg200022-Aug-07 9:04 
GeneralRe: ADODB.RecordSet.RecordCount always return 0 or -1 Pin
vbDigger'z24-Aug-07 22:08
vbDigger'z24-Aug-07 22:08 
QuestionWebbrowser Control DrawToBitmap Pin
Ahmad Zaidi21-Aug-07 13:19
Ahmad Zaidi21-Aug-07 13:19 
AnswerRe: Webbrowser Control DrawToBitmap Pin
Ahmad Zaidi21-Aug-07 13:31
Ahmad Zaidi21-Aug-07 13:31 
QuestionDrawedge API call VB2005 Pin
koosvanderhurk21-Aug-07 12:31
koosvanderhurk21-Aug-07 12:31 
AnswerRe: Drawedge API call VB2005 Pin
Christian Graus21-Aug-07 12:45
protectorChristian Graus21-Aug-07 12:45 
Questiondate variable to string variable Pin
Arif Liminto21-Aug-07 12:22
professionalArif Liminto21-Aug-07 12:22 
AnswerRe: date variable to string variable Pin
Christian Graus21-Aug-07 12:45
protectorChristian Graus21-Aug-07 12:45 
AnswerRe: date variable to string variable Pin
Mark Churchill21-Aug-07 21:07
Mark Churchill21-Aug-07 21:07 
QuestionHelp how do you loop thru each record in DataGrid Pin
Smokeywade21-Aug-07 11:06
Smokeywade21-Aug-07 11:06 
AnswerRe: Help how do you loop thru each record in DataGrid Pin
Christian Graus21-Aug-07 11:18
protectorChristian Graus21-Aug-07 11:18 
GeneralRe: Help how do you loop thru each record in DataGrid Pin
Smokeywade21-Aug-07 12:12
Smokeywade21-Aug-07 12:12 
GeneralRe: Help how do you loop thru each record in DataGrid Pin
Christian Graus21-Aug-07 12:50
protectorChristian Graus21-Aug-07 12:50 
GeneralRe: Help how do you loop thru each record in DataGrid Pin
Smokeywade21-Aug-07 13:26
Smokeywade21-Aug-07 13:26 
GeneralRe: Help how do you loop thru each record in DataGrid Pin
Christian Graus21-Aug-07 13:43
protectorChristian Graus21-Aug-07 13:43 
GeneralRe: Help how do you loop thru each record in DataGrid Pin
Smokeywade22-Aug-07 3:51
Smokeywade22-Aug-07 3:51 

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.