PC Review


Reply
Thread Tools Rate Thread

ADO.NET Deisgn

 
 
Tarey
Guest
Posts: n/a
 
      16th Jul 2003
Hi,

When you connect to a database and retrieve data, ususally
that data is displayed in a textbox, listbox, grid, etc.
The books I've read usually to this. But shouldn't a class
be created, then have the data populate the class then
display it. For example, instead of having employee
information - name, pay, etc., retrieved by a datareader
and displayed in textboxes, should an Employee class be
created first? Then the information from the database
could populate the Employee class or a collection of
emplolyee classes be displayed.

Does anyone know of books, examples, or other resources
that discuss this?

TIA,
Tarey


 
Reply With Quote
 
 
 
 
Kathleen Dollard
Guest
Posts: n/a
 
      17th Jul 2003
Tarey,

YES!

It is unfortunate that so many examples try to make things so simple that
they do it in a way that's just wrong for the real world.

You might try www.fawcette.com. There are numerous articles on MSDN, just
hard to sort through them. I just bought Rocky Lhotka's book (haven't read
it yet).

--
Kathleen (MVP-VB)



"Tarey" <(E-Mail Removed)> wrote in message
news:002501c34bc2$8118ca50$(E-Mail Removed)...
> Hi,
>
> When you connect to a database and retrieve data, ususally
> that data is displayed in a textbox, listbox, grid, etc.
> The books I've read usually to this. But shouldn't a class
> be created, then have the data populate the class then
> display it. For example, instead of having employee
> information - name, pay, etc., retrieved by a datareader
> and displayed in textboxes, should an Employee class be
> created first? Then the information from the database
> could populate the Employee class or a collection of
> emplolyee classes be displayed.
>
> Does anyone know of books, examples, or other resources
> that discuss this?
>
> TIA,
> Tarey
>
>



 
Reply With Quote
 
tperovic
Guest
Posts: n/a
 
      17th Jul 2003
Check out this book:

Expert One-on-One Visual Basic .NET Business Objects
by Rockford Lhotka

"Tarey" <(E-Mail Removed)> wrote in message
news:002501c34bc2$8118ca50$(E-Mail Removed)...
> Hi,
>
> When you connect to a database and retrieve data, ususally
> that data is displayed in a textbox, listbox, grid, etc.
> The books I've read usually to this. But shouldn't a class
> be created, then have the data populate the class then
> display it. For example, instead of having employee
> information - name, pay, etc., retrieved by a datareader
> and displayed in textboxes, should an Employee class be
> created first? Then the information from the database
> could populate the Employee class or a collection of
> emplolyee classes be displayed.
>
> Does anyone know of books, examples, or other resources
> that discuss this?
>
> TIA,
> Tarey
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
huge problems with database deisgn for survey Desperate in Ontario Microsoft Access Database Table Design 15 20th Nov 2008 08:22 PM
how do I get rid of "the expression you entered exceeds the1,024-character limit for the query deisgn grid" annysjunkmail@tiscali.co.uk Microsoft Access Queries 4 21st Apr 2008 10:36 AM
Best way to deisgn the tables =?Utf-8?B?ZGVicmFqMDA3?= Microsoft Access Database Table Design 1 18th Jan 2006 03:12 PM
Deisgn View =?Utf-8?B?cmRhbnlvbQ==?= Microsoft Access 1 30th Mar 2004 03:21 AM
How to edit or customise "deisgn templates" format? thor Microsoft Powerpoint 0 16th Jul 2003 12:43 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:32 AM.