Overlapping typed datasets in .NET2: best practices?

H

henk gijsbert

Assume I have one adressTable that is used for as well companies as
persons and I have need to retrieve companies with adresses as well as
persons with adresses. I could generate typed datasets, one with
companytable+addresstable and one with personTable+addresstable,
resulting in as well identical addresstables generated in both datasets
as identical AddressTableAdapters.

This doesn't feel right. What is a good practice in such a case:
-Do it anyway as described
-Generate 3 typed datasets with 1 table each and use untyped datasets
to combine the typed tables (this is what I am thinking of)
-Use one typed dataset and one untyped
-something else?

Regards,
Henk
 
M

Miha Markic [MVP C#]

btw, I use template based code generator (CodeSmith) to automatically
produce all required datasets...
 

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

Top