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
Ramco RamcoPosted Jul 5, 2022, 8:29 AM
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
Ramco RamcoPosted Jul 5, 2022, 8:09 AM
Sachin SinghPosted Jul 5, 2022, 6:59 AM
Ramco RamcoPosted Jul 5, 2022, 6:44 AM
Hi
Now it is giving error Invalid Annonymous type member declarator
on (int) t2.BookID, (int) t2.StudentID
Thanks
Sachin SinghPosted Jul 5, 2022, 6:41 AM
Ramco RamcoPosted Jul 5, 2022, 6:34 AM
Sachin SinghPosted Jul 5, 2022, 6:22 AM