title: Update statement in Lambda expression
body: <p>I would like to convert the following to lambda expression :</p>
  
  <pre><code>Update [ActivityTask] Set GroupID = "1" Where ActivityID = aid AND TaskID = tid ;
  </code></pre>
  
  <p>GroupID  = (an int that is taken from elsewhere , not hardcoded i put as 1 as an examle) </p>
  
  <p>I really got stucked at how to continue with this ... i got the insert method :</p>
  
  <pre><code>public void Insert(ModelSQL.ActivityTask act)
  {
      context.ActivityTasks.AddObject(act);
  }
  </code></pre>
  
  <p>Wondering if it works the same as the top so i tried this :</p>
  
  <pre><code>    public void Update(int gid , int aid , int tid)
      {
          Update&lt;ActivityTask&gt;( new { x =&gt; x.GroupID == gid }).Where(x =&gt; x.activityID == aid &amp;&amp; x.taskID == tid);
      }
  </code></pre>
  
  <p>But it gives error " Cannot assign lambda expression to anonymous " and i also cannot use 3 arguments ( 3 ints ) ..</p>