Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Where CaseId and TypeId are your members of CaseClient
- var x = caseClients.Join( cases, cc => cc.CaseId, c => c.Id)
- .Join( types, cc => cc.TypeId, t => t.Id)
- .Select();
- IEnumerable<Case> getCaseByClient(int client_id)
- {
- var ret = from c in Cases
- join cc in CasesClients
- on c.Id equals cc.ClientId
- join cl in Clients
- on cc.ClientId equals client_id
- select c;
- return ret;
- }
Add Comment
Please, Sign In to add comment