Click here to Skip to main content
15,923,273 members
Home / Discussions / Database
   

Database

 
GeneralRe: Delete query Pin
Tauseef A20-Dec-06 23:55
Tauseef A20-Dec-06 23:55 
GeneralRe: Delete query Pin
Pete O'Hanlon21-Dec-06 0:23
mvePete O'Hanlon21-Dec-06 0:23 
AnswerRe: Delete query Pin
Frank Kerrigan21-Dec-06 23:57
Frank Kerrigan21-Dec-06 23:57 
QuestionA new bie question in regards to ADO Pin
Irfan Faruki20-Dec-06 22:25
Irfan Faruki20-Dec-06 22:25 
AnswerRe: A new bie question in regards to ADO Pin
Colin Angus Mackay20-Dec-06 22:36
Colin Angus Mackay20-Dec-06 22:36 
GeneralRe: A new bie question in regards to ADO Pin
Mairaaj Khan21-Dec-06 0:43
professionalMairaaj Khan21-Dec-06 0:43 
GeneralRe: A new bie question in regards to ADO Pin
Colin Angus Mackay21-Dec-06 1:58
Colin Angus Mackay21-Dec-06 1:58 
GeneralRe: A new bie question in regards to ADO Pin
Pete O'Hanlon21-Dec-06 2:39
mvePete O'Hanlon21-Dec-06 2:39 
uroojkhan wrote:
If we need DataTable or DataRow, then what should we do


Find something better.

Seriously, a DataTable/DataRow does not model your business object. It is just a handy wrapper that Microsoft provided. It does not make for a robust design for several reasons:

1. Suppose that you want to expose your object as a web-service. While .NET knows what a DataTable is, you would have to write your own wrapper for any other platform (e.g. Java).
2. What happens if you change a field name in the database? DataSets (and so on) are loosely coupled. You are more likely to forget to fix a DataSet than you are a properly designed business object.
3. They are large and unwieldy. They provide a lot of overhead because they are so generic. A lot of plumbing is needed to make sure that it works with different types of data.
4. It does not abstract the UI from the database. You still need knowledge of the database to use them. Which makes more sense to you? A class with a property called CustomerName or a DataRow with a value dr["cust_name"] (which must also be cast to the appropriate type).



the last thing I want to see is some pasty-faced geek with skin so pale that it's almost translucent trying to bump parts with a partner - John Simmons / outlaw programmer

Deja View - the feeling that you've seen this post before.

AnswerRe: A new bie question in regards to ADO Pin
Irfan Faruki21-Dec-06 4:25
Irfan Faruki21-Dec-06 4:25 
AnswerRe: A new bie question in regards to ADO Pin
Frank Kerrigan22-Dec-06 0:00
Frank Kerrigan22-Dec-06 0:00 
QuestionDoubt Regarding Sqldmo View Pin
ruparanju20-Dec-06 22:19
ruparanju20-Dec-06 22:19 
QuestionReturn two values Pin
DanB198320-Dec-06 11:59
DanB198320-Dec-06 11:59 
AnswerRe: Return two values Pin
Colin Angus Mackay20-Dec-06 22:39
Colin Angus Mackay20-Dec-06 22:39 
GeneralRe: Return two values Pin
DanB198321-Dec-06 0:24
DanB198321-Dec-06 0:24 
QuestionDateDiff returns in HH:MM format Pin
VK-Cadec20-Dec-06 8:22
VK-Cadec20-Dec-06 8:22 
AnswerRe: DateDiff returns in HH:MM format Pin
Colin Angus Mackay20-Dec-06 22:41
Colin Angus Mackay20-Dec-06 22:41 
Questionproblem getting sum of each row Pin
xoxoxoxoxoxox20-Dec-06 6:13
xoxoxoxoxoxox20-Dec-06 6:13 
AnswerRe: problem getting sum of each row Pin
ednrgc20-Dec-06 6:25
ednrgc20-Dec-06 6:25 
GeneralRe: problem getting sum of each row Pin
xoxoxoxoxoxox20-Dec-06 6:50
xoxoxoxoxoxox20-Dec-06 6:50 
AnswerRe: problem getting sum of each row Pin
Keith Malwitz20-Dec-06 6:41
Keith Malwitz20-Dec-06 6:41 
AnswerRe: problem getting sum of each row Pin
RinkRat20-Dec-06 6:59
RinkRat20-Dec-06 6:59 
Questionlink the foxpro(.dbf) table with mssql Pin
Guru_yogi20-Dec-06 1:12
Guru_yogi20-Dec-06 1:12 
AnswerRe: link the foxpro(.dbf) table with mssql Pin
Pete O'Hanlon20-Dec-06 22:46
mvePete O'Hanlon20-Dec-06 22:46 
QuestionGuy's pls help... Pin
tilak.gummadi19-Dec-06 23:19
tilak.gummadi19-Dec-06 23:19 
AnswerRe: Guy's pls help... Pin
Mairaaj Khan20-Dec-06 0:57
professionalMairaaj Khan20-Dec-06 0:57 

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.