I've programmed in various languages but am just getting started with VB Net under VS2010 Express and SQL CE 3.5. It's pretty cool how you can drag-and-drop from a Dataset and create forms that display parent records and their synchronized child records with no programming at all. But I've run into this limitation.
If you just drag and drop, each table adapter in a dataset will correspond to a table (one) in the database, but a user will frequently want to see a "list of records" that is really a composite of several tables or calculated values. For example, a user might want to see a list of orders including the order balance for each. For that, you're going to have to sum the totals of the order details, which exist in a different table. I guess you would call this a "view," except SQL CE 3.5 doesn't support them.
I've discovered that you can create table adapters from various real tables through the Query Builder, but then of course that table adapter can't update, so how do you update? I've tried keeping the actual data tables in the data set along with the "view" tables, but keeping the synchronized is turning into such a Rube Goldberg device that I'm thinking there's a different way. How do you do it?
If you just drag and drop, each table adapter in a dataset will correspond to a table (one) in the database, but a user will frequently want to see a "list of records" that is really a composite of several tables or calculated values. For example, a user might want to see a list of orders including the order balance for each. For that, you're going to have to sum the totals of the order details, which exist in a different table. I guess you would call this a "view," except SQL CE 3.5 doesn't support them.
I've discovered that you can create table adapters from various real tables through the Query Builder, but then of course that table adapter can't update, so how do you update? I've tried keeping the actual data tables in the data set along with the "view" tables, but keeping the synchronized is turning into such a Rube Goldberg device that I'm thinking there's a different way. How do you do it?