Understand what you are saying that vb2008 is not the ideal way to do this but can I just ask would you even try to make a class model of the system I have described or would you just code the various forms.
Main Topics
Browse All TopicsHi guys
This is just a general question, in vb2008 I am trying to model an application which connects to a relational database and displays, updates and deletes data in a datagridview, obviously I would like to make the application as object oriented as possible, what kind of class structure do you think I should use IE do you think I should have a class for every table in the database, with the properties of the class being the fields of the database tables, I have thought about this approach but there seems no point as the fields in the tables will not need to be manipulated they will just be updated and deleted, it will be interesting to hear your thoughts on this.
Regards
dizzycat
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
I, personally, don't prefer the custom class model approach, because it's a lot of work, and ADO.NET is perfectly suited for the task. If you are really interested in that approach, there is an excellent book written by Deborah Kurata named "Doing Objects in Visual Basic 2005" (you'll have to see if there is a 2008 version).
Here's a review I wrote about this book at Amazon.com:
http://www.amazon.com/revi
Also, take a look at this article I wrote at The Code Project, it's titled "XML Database Demo". In this short demo you are walked through creating a strongly-type DataSet, with DataTables. This should at least familiarize you with it, although it can be even further simplified when working with Databases.
http://www.codeproject.com
Create a new project in VS 2008.
Connect to a DataSource
Data menu | Add New DataSource
Select Database
Click New Connection, configure, close
Click next all the way through
Choose the Database objects (tables/stored procedures)
Click Finish
Automatically adds a Strongly-Typed DataSet to your program.
I think you need to get deep understanding of database accessing in .net framework specially using Visual Basic.NET
ADO.Net consists of a powerful tools and classes that handle data
Check this eBook:
http://www.ebookpdf.net/eb
Here's an example:
http://www.ee-stuff.com/Ex
The only thing you need to do is update the "AdventureWorksConnectionS
project Properties | Settings tab.
Here's where you can download the AdventureWorks database:
http://msftdbprodsamples.c
Business Accounts
Answer for Membership
by: VBRocksPosted on 2009-11-03 at 06:59:40ID: 25729529
I totally recommend just using ADO.NET: DataSets and DataTables. They are completely designed for that. They can completely model your database, with relationships and everything.