G
Guest
I am fairly new to VB.NET programming but have built many database applications in Access SQL Server etc.
I need to find a good book or other reference material that will help me take my OO programing skills to the next level.
I can build forms and bind data to them from SQL server, but somehow this seems not to be the best way to use an OO programming language.
I guess the professional way of doing it is to have classes for each of the tables in the database and have methods that ADD UPDATE and DELETE records for the table plus additional methods that load the object from the database etc. The propoerties for the class would correspond to the fields in the database.
So for example you might have a CUSTOMER table and a CUSTOMER class that handles everything to do with manipulating customers. Manipulations include adding, updating deleting, validating, retreiving from the database. Then i guess you would have a CUSTOMERS collection class that is a collection of customers so that for example you could load the collection into a datatable and present them in a grid.
Then one level deeper is that you may have an INVOICE class that has a CUSTOMER object as one of its properties. etc etc etc
It seems to me that this approach although difficult to get right will result in a much more flexible end result.
I have loads of books on VB.NET and ASP.NET and the only one that I have found that even touches on this subject is "Beginning ASP.NET Databases with VB.NET by Wrox Press" Chapter 10 Componentization.
Does anyone know of any books, etc that can help me understand how to do this componentization properly ( i need lots of example etc )? Also, are there any tools out there that will examine a SQL server database and generate all the data classes and methods for you?
Thanks for your help
I need to find a good book or other reference material that will help me take my OO programing skills to the next level.
I can build forms and bind data to them from SQL server, but somehow this seems not to be the best way to use an OO programming language.
I guess the professional way of doing it is to have classes for each of the tables in the database and have methods that ADD UPDATE and DELETE records for the table plus additional methods that load the object from the database etc. The propoerties for the class would correspond to the fields in the database.
So for example you might have a CUSTOMER table and a CUSTOMER class that handles everything to do with manipulating customers. Manipulations include adding, updating deleting, validating, retreiving from the database. Then i guess you would have a CUSTOMERS collection class that is a collection of customers so that for example you could load the collection into a datatable and present them in a grid.
Then one level deeper is that you may have an INVOICE class that has a CUSTOMER object as one of its properties. etc etc etc
It seems to me that this approach although difficult to get right will result in a much more flexible end result.
I have loads of books on VB.NET and ASP.NET and the only one that I have found that even touches on this subject is "Beginning ASP.NET Databases with VB.NET by Wrox Press" Chapter 10 Componentization.
Does anyone know of any books, etc that can help me understand how to do this componentization properly ( i need lots of example etc )? Also, are there any tools out there that will examine a SQL server database and generate all the data classes and methods for you?
Thanks for your help