ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,815 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
To simplify the issue I have two tables students and courses where student_id is the foreign key in the courses table. Now, in the courses controller, I want to access the student_name field to pass to the Index view. How can I achieve it? The present Index view lists all fields in courses table along with student_id.