title: Update table to not IN condition
body: <p>I have a strongly typed list called "attendeeList" that contains all active attendees:</p>
  
  <pre><code>   List&lt;tb_Attendees&gt; attendeeList
  
     public partial class tb_Attendees
     {
      public int AttendeeId { get; set; }
      public int MeetingId { get; set; }
      public string AttendeeName { get; set; }
      public bool IsActive { get; set; }
      .....
  </code></pre>
  
  <p>I need update the following table:</p>
  
  <pre><code>    DataContext.tb_Attendees 
  </code></pre>
  
  <p>such that that for a given MeetingId, for all AttendeeIds are not in the list, it will update those records to IsActive = false. Basically I am doing a NOT IN. </p>
  
  <p>I want to do something to the effect:</p>
  
  <pre><code> DataContext.tb_Attendees.Where(p =&gt; p.MeetingId == meetingId &amp;&amp; !attendeeList.Contains(p =&gt; p.AttendId) ).ToList().ForEach(x =&gt; x.IsActive = false);
   DataContext.SaveChanges();
  </code></pre>
  
  <p>First of all, is this correct? I get an error saying cannot convert from int to Model.tb_Attendees. Do I need to have the list as in int list or any way to accomplish this.  </p>