title: Linq update issue with lambda
body: <p>I am trying to write some code in Linq with lambda.This is my first code using lambda and i am facing an issue while updating Record.
  My code  is:</p>
  
  <pre><code>using (DataClasses1DataContext db = new DataClasses1DataContext())
  {
  
      Table&lt;NOTIF_RECIP&gt; NOTIF_RECIP_alias = db.GetTable&lt;NOTIF_RECIP&gt;();
      Table&lt;NOTIF_SCHED&gt; NOTIF_SCHED_alias = db.GetTable&lt;NOTIF_SCHED&gt;();
      Table&lt;mainframe_replication&gt; mainframe_replication_alias = db.GetTable&lt;mainframe_replication&gt;();
  
      var ids = NOTIF_SCHED_alias.Select(x =&gt; x.NOTIF_RPT_ID).ToArray();
  
  
      foreach (string notif_sched_data in ids)
      {
          var repljoinmf = mainframe_replication_alias
                          .Join(NOTIF_RECIP_alias,
                               mfr =&gt; mfr.RPT_ID,
                               nr =&gt; nr.NOTIF_RECIP_ID,
                               (mfr, nr) =&gt; new
                               {
                                   ReportId=mfr.RPT_ID, 
                                   Reportversion=mfr.RPT_VERS,
                                   ReportBytes= mfr.RPT_BYTES.ToString(), 
                                   ReportDate=mfr.REPL_DTM.ToString(),
                                   NotifId= mfr.NOTIF_ID,
                                   RecipAdd=nr.NOTIF_RECIP_ADDR
                               });
  
          foreach(var repljoinmf_data in repljoinmf)
          {
              //DO STUFF 
              repljoinmf_data.NotifId = "Changedxyz";
              //db.SubmitChanges();
          }
      }
  }
  </code></pre>
  
  <p>I am getting Error in <code>repljoinmf_data.NotifId = "Changedxyz";</code>
  Error says: <strong>Error 2   Property or indexer 'AnonymousType#3.NotifId' cannot be assigned to -- it is read only</strong></p>
  
  <p>Can someone please help me in this.I think it is because I am using var which is anonymous but how to solve the problem.Any help is appreciated.</p>
  
  <p>Thanks</p>