title: Delete record using linQ with lambda Expression
body: <p>I want to delete records of sql database using linq lambda expression. What should I do?</p>
  
  <p>Here 'student' is my table and 'db' is object of .edmx file </p>
  
  <pre><code>public bool DeleteRecord(int caurseID)
  {
      studentEntities db = new studentEntities();
  
      int count = db.student.Where(s =&gt; s.caurse_id == caurseID).Count();
  
      if (count != 0)
      {
          //string subQuery = "delete from student where caurse_id=" + caurseID;
          //SqlCommand subCmd = new SqlCommand(subQuery, conn);
          //subCmd.ExecuteNonQuery();
          db.student. : For Delete, what will be goes here???
      }
  
      return true;
  }
  </code></pre>