title: How to get the foreign key in Entity Framework?
body: <p>I am developing StudentApp in .NET 3.5 SP1 MVC Application.</p>
  
  <p>I have two tables</p>
  
  <ol>
  <li>Course<br>
      CourseID, course_Name</li>
  <li>Students<br>
      studentID, student_Name, courseID(fk)</li>
  </ol>
  
  <p>Now I made StudentApp.dbml which is having both table as entities.</p>
  
  <p>As Foreign key will not be present in student entity,
  I can not display courseID in student model, more over i can not generate add, edit, list views.</p>
  
  <p>So tell me how to display courseID(fk) in student &amp; i also want course name instead.</p>
  
  <p>And also dropdownbox showing course name &amp; storing courseID in edit view . </p>