G
Guest
Thought this would be simple, but apparently its not. I have a
strongly-typed dataset with tables that have relations set in the DataSet
designer. I've been stymied when attempting to fill this dataset using a
join query. Without TableMappings, nothing is filled in the dataset. I
can't use table mappings, however, because it won't allow me to split one
result set among four different tables. I can create a tablemapping for each
table in the dataset, but the "source table" is the same in each one--the
result set. No two table mappings can have the same source table, so it
fails. If I was grabbing all data, it wouldn't be such a problem, as I could
fill each table in turn. However, I'm performing a search at the same time,
which means only relevant data is returned. Pulling it all down and then
sorting through everything is not feasable, since the database could
hypothetically contain millions of rows. What should I do? Use a
DataReader and fill the dataset manually? TIA.
strongly-typed dataset with tables that have relations set in the DataSet
designer. I've been stymied when attempting to fill this dataset using a
join query. Without TableMappings, nothing is filled in the dataset. I
can't use table mappings, however, because it won't allow me to split one
result set among four different tables. I can create a tablemapping for each
table in the dataset, but the "source table" is the same in each one--the
result set. No two table mappings can have the same source table, so it
fails. If I was grabbing all data, it wouldn't be such a problem, as I could
fill each table in turn. However, I'm performing a search at the same time,
which means only relevant data is returned. Pulling it all down and then
sorting through everything is not feasable, since the database could
hypothetically contain millions of rows. What should I do? Use a
DataReader and fill the dataset manually? TIA.