ADO.NET Deisgn

  • Thread starter Thread starter Tarey
  • Start date Start date
T

Tarey

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
 
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).
 
Check out this book:

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top