title: Retrieving data from Database and binding to List<> using EntityFramework MVC
body: <p>I Have a table student in my database with some values and i want to display those values in webgrid using entityframework.</p>
  
  <p>I have done the samething before many times using Ado.net, but the purpose of this for me is just to learn entity framework and im absolute beginner to Entityframework.</p>
  
  <p>I used database first approach for this and in created a model Student with Id,FirstName,LastName,City.</p>
  
  <p>i also defined a List and i want to bind the result set from the database to this Student List and bind it to the webgrid</p>
  
  <pre><code> public List&lt;Student&gt; stList;
  
  
      public  List&lt;Student&gt; GetStudents()
      {
          stList = new List&lt;Student&gt;();
          EntityFWEntities OE = new EntityFWEntities();
          var Res = OE.Students;
  
      }
  </code></pre>
  
  <p>How can i assign the VAR value to List, also is this the correct approach i following or is there an other better approach, please correct me if im wrong</p>