hi,
i'm working on an app that uses a dataset who's tables are filled with some hybrid SELECT queries, meaning, the tables in the dataset are hybrids of mixed data from the datasource (SQL Server btw), or better, no single table in the dataset is a modeled copy of a table in the datasource.
here's an example query:
SELECT tblA.pKeycol, tblA.val1, tblA.valX, tblB.valX, tblC.valX
FROM tblA INNER JOIN tblB ON (tlbA.pKeyCol = tblB.fKeyCol), tblC
WHERE tblA.pKeyCol = 'someValue'
for fun, say a one-to-many relationship exists between tblA and tblB as well as cascade update/delete constraints.
so after making changes to the table in the dataset, what effect does a call to update on this table do? is the SqlDataAdapter smart enough to figure out what goes where and how?
i guess for clarity it's possible for me to create other tables in the dataset that are replicas of what's in the SQL datasource -- and somehow reflect the changes here and then make a call to Update. this seems like 10-fold the amount of work necessary, however.
any thoughts, advice, suggestions? greatly appreciated, and thanks in advance!
..:: mirirom ::..
i'm working on an app that uses a dataset who's tables are filled with some hybrid SELECT queries, meaning, the tables in the dataset are hybrids of mixed data from the datasource (SQL Server btw), or better, no single table in the dataset is a modeled copy of a table in the datasource.
here's an example query:
SELECT tblA.pKeycol, tblA.val1, tblA.valX, tblB.valX, tblC.valX
FROM tblA INNER JOIN tblB ON (tlbA.pKeyCol = tblB.fKeyCol), tblC
WHERE tblA.pKeyCol = 'someValue'
for fun, say a one-to-many relationship exists between tblA and tblB as well as cascade update/delete constraints.
so after making changes to the table in the dataset, what effect does a call to update on this table do? is the SqlDataAdapter smart enough to figure out what goes where and how?
i guess for clarity it's possible for me to create other tables in the dataset that are replicas of what's in the SQL datasource -- and somehow reflect the changes here and then make a call to Update. this seems like 10-fold the amount of work necessary, however.
any thoughts, advice, suggestions? greatly appreciated, and thanks in advance!
..:: mirirom ::..