Hi
When i add && t.studentid equals t2.studentid then i get above error
public List
{
List
join t2 in context.View_BookDeliveryDetails
on t.BookID equals t2.BookID && t2.StudentID equals t2.studentid
where t.CurrentStatus == "Due"
orderby t.Name
select t).ToList();
return Result;
}
Thanks

Sachin SinghRank #66 · 26.2K reputationPosted Jul 5, 2022, 2:22 AM EDT
Ramco RamcoRank #462 · 5.4K reputationPosted Jul 5, 2022, 2:34 AM EDT
Sachin SinghRank #66 · 26.2K reputationPosted Jul 5, 2022, 2:41 AM EDT
Ramco RamcoRank #462 · 5.4K reputationPosted Jul 5, 2022, 2:44 AM EDT
Hi
Now it is giving error Invalid Annonymous type member declarator
on (int) t2.BookID, (int) t2.StudentID
Thanks
Sachin SinghRank #66 · 26.2K reputationPosted Jul 5, 2022, 2:59 AM EDT
Ramco RamcoRank #462 · 5.4K reputationPosted Jul 5, 2022, 4:09 AM EDT
Ramco RamcoRank #462 · 5.4K reputationPosted Jul 5, 2022, 4:29 AM EDT
Hi sachin
When i write like below then it is showing no error. Both sides int
on new { p1 = (int)t.BookID, p2 = (int)t.StudentID} equals new { p1 = (int)t2.BookID, p2 = (int)t2.StudentID }
Thanks