How to write Like query in Linq to Entities
<p>i tried the following code...</p>

<pre><code>public ActionResult Search(string query)
    {
        using (DbAccess db=new DbAccess())
        {
            List&lt;Student&gt; studentsList = db.Students.Where(m=&gt;m.name.Contains("d")==query).ToList();
            return View(studentsList);                
        }
    }
</code></pre>

<p>but if i use "Contains" then it gives me error..
please help</p>