Why custom business object's while i can't update my database with them ?

Hi, i have this big problem in my architecture : i want to build my object model by using the idea of collections, so i have a Customers object, a Customer object, an Orders object, and an Order object, and so on...

the Problem is that those custom business objects, hold my data, and of corse, i want to update my database by using the data in those object's, and oop's, the DataAdapter don't accept custome business objects as a parameter !! (only dataset are allowed).

I know that a dataset is also a collection of tables, and i could write my business objects as a dataset's and tables inside them, but with this method, i am obliged to accept the default names that the dataset generator create for me(i don't want to write all the code by my self !), and there is no way to change the names that the designer give to my tables...

So if i have for example a dataset that have a customers table and an Orders table, the designer will create a class named customersDataTable and OrdersDataTable...

what i can do if i want to create my business objects(by using my names) and in the same time, i can update my database using a DataAdapter (there is another method ) and also, fill my business object also ...




Answer this question

Why custom business object's while i can't update my database with them ?