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

Visual Basic

 
AnswerRe: Who can help me? Pin
Vasudevan Deepak Kumar22-Aug-07 4:43
Vasudevan Deepak Kumar22-Aug-07 4:43 
QuestionBest Practices to work with databases using VB .NET Pin
RaveRare21-Aug-07 19:22
RaveRare21-Aug-07 19:22 
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 
Hello,
It also depends on how big the company is and how many different database applications are required.

I have certainly seen cases where ORM is simply not necessary because the company and /or the requirements arent too Big.

I am a big fan of a 3 tier approach myself

Dumb Database Layer - gets/upserts the data - if written correctly with abstract factories for each type of database (SQL, Oracle, Web Service etc.)
Once this is written it can be used everywhere and only needs changing when a new type of database is going to be used.

Business Layer - derived from a stongly created Base Class which holds the business rules for processing data entities. For example a User Business component or an "Order" Business component. In my case each busines component would be capable of navigating row by row or presenting a modified dataset for binding to gui.
The business layer would be where most of the on going maintenance would occur. It would hold all the business rules. Ie you change the users details , therefore generate an audit record.

These components could be stored in a different process or server if required.

Gui/Controller layer - This takes the data from the business layer and adds it to the Gui controls and then takes any changes and passes them to the business layer- it includes some gui based validation rules ie a field is just number or a date, that kind of thing.

Personally I think, for a small to perhaps medium sized company, that this gives the best framework in terms of long term maintenance costs and ease of use.
Yes its a bigger pain than just binding data to controls from within each app but once the initial overhead is taken care of I see this as a very robust solution.

Hope this helps
Martin

life is a bowl of cherries
go on take a byte

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 
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 

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.