title: Can I combine a foreach and a LINQ query into one?
body: <p>I have a C# code that looks like this:</p>
  
  <pre><code>foreach (var entry in this.ChangeTracker.Entries()
                       .Where(e =&gt; e.Entity is IAuditableTable &amp;&amp;
                                   e.State == EntityState.Added))
  {
      IAuditableTable e = (IAuditableTable)entry.Entity;
      e.ModifiedDate = DateTime.Now;
  }
  </code></pre>
  
  <p>This seems to be like a combination of foreach and LINQ. Can sometone tell me is it possible for me to remove the foreach and combine this into one LINQ statement</p>