I have two tables student_courses and student table
| student_ID | NAme | Password | |
| 1 | [email protected] | TABOR | 123123 |
| 2 | [email protected] | MARK | 123123 |
| id | student_ID | course_Id | year | program |
| 1 | 1 | 1 | 1 | 2 |
| 2 | 1 | 2 | 1 | 2 |
now i want to get the email of all students who is having year 1 and program 2 below is my code by which i am getting data from student courses table , but it did not have email , email field is in student table how to achieve that .
return std.Student_courses.Where(x => x.Program_Id == program && x.Year_Id == year ).ToList();

Sachin SinghRank #66 · 26.2K reputationPosted Nov 4, 2020, 12:04 AM EST
Mark TaborRank #914 · 2.3K reputationPosted Nov 4, 2020, 12:23 AM EST
Mark TaborRank #914 · 2.3K reputationPosted Nov 4, 2020, 12:35 AM EST
Mark TaborRank #914 · 2.3K reputationPosted Nov 4, 2020, 12:36 AM EST