Hi

I was just wondering whats is the best way to retrive data from a database trough a class and return it to the calling client, so far i can only think of two

1)Retrive data from a database trough a dataadapter and return as datatable.

2)Retrive data from a database trough dataadapter and assign the return data to the properties of the class, so that the calling client can get the data trough the properties of the class.


Is there any better way then the one stated above?

Thanks