Add Joins to DataTable Select Commands
In Chapter 6 pg 222 it steps through adding a join to the select command between the Order Details and Products tables. The commandtext is updated for the join in the SelectCommand, DeleteCommand, InsertCommand, and UpdateCommand after following the steps in the book.
If you used the same 3 tables but you want the join to be between the Orders and Products tables, with the linking table as Order Details in in the middle, the joining process (steps) do not seem to work? The DeleteCommand, InsertCommand, and UpdateCommand code does not update, I assume because of a linking table. How might you recommend achieving this task of showing Orders information in Products.
|