title: Bulk Update in Entity Framework Core
body: <p>I pull a bunch of timesheet entries out of the database and use them to create an invoice. Once I save the invoice and have an Id I want to update the timesheet entries with the invoice Id. Is there a way to bulk update the entities without loading them one at a time?</p>
  
  <pre><code>void SaveInvoice(Invoice invoice, int[] timeEntryIds) {
      context.Invoices.Add(invoice);
      context.SaveChanges();
  
      // Is there anything like?
      context.TimeEntries
          .Where(te =&gt; timeEntryIds.Contains(te.Id))
          .Update(te =&gt; te.InvoiceId = invoice.Id);
  }
  </code></pre>