Hi there,
is there a good way of of returning a 1 to many relationship from linq2sql, probably needs some explanation ! :-)
Basically i have a table that has invoices and another table that is invoice details..
I have my linq2sql classes that were automatically created using linq2sql designer ...
So to return the query where invoice 1232 has 15 different items/details... The way i see it at the moment is that i have to Do a query on the invoice and then a query on the invoice query detail...
I am sure there must be an easier way ? rather than doing 2 queries ... i.e. a JOIN?
Also i wanted to see if i could return the values in a Iqueryable but with the linked table?
Basicall i have my method that is Iqueryable<> GetInvoice();
of course Iqueryable is a generic and can contain Invoice or Invoice Details - NOT both, or maybe i am missing something?