The query operator 'TakeWhile' is not supported
<p>This is my code. I have created table <code>M_Operator</code> and I want to get the name from the table which has length of more than 4 characters.
but I am getting this error: </p>

<blockquote>
  <p>The query operator 'TakeWhile' is not supported. </p>
</blockquote>

<p>Here is my code:</p>

<pre><code>public partial class _Default : System.Web.UI.Page
{
    DataClassesDataContext dbcon = new DataClassesDataContext();

    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            Get();
        }
    }
    public void Get()
    {
        var Operands = (from a in dbcon.M_Opearators
                        select new
                        {
                            a.Id,
                            a.Name,
                            a.Salary
                        }).TakeWhile(a=&gt;a.Name.Length&lt;4);
            gridEmployee.DataSource = Operands; 
        gridEmployee.DataBind();
    } 
}
</code></pre>