Last post Apr 06, 2020 09:16 AM by Yang Shen
Apr 03, 2020 09:12 PM|JamieP1|LINK
Apr 03, 2020 09:52 PM|mgebhard|LINK
Using an asmx service, if I retrieve a single customer, I would also like to retrieve their list of addresses. One way I think I can do this (again via an asmx service) is to load the customer using the id and then get the records using that id when the page
is accessed. Is there a better way to do this or would it have to be 2 calls as in 1 for the customer record on page access then the second for the list of addresses returned by the id of the customer?
This is totally dependent on your data access layer which is unknown In LINQ to Entities it's a projection query. In ADO.NET two queries will work or return a dataset with two tables then populate the POCOs.
Apr 04, 2020 03:36 AM|JamieP1|LINK
Apr 06, 2020 09:16 AM|Yang Shen|LINK
In which case could/should I have a dataset with two tables assigned and then query or it or am I just adding more complexity than necessary?
Whether it's adding more complexity than necessary depends on how you are gonna deal with the usement. For more information about in which case you shall use the dataset, please check the