title: Get list of Identity Ids inserted in EF Core
body: <p>I have a list that I am adding to a table through EF core. Table also has an identity column. I need the values of list of identity values once saveChanges is called. This function can be called my multiple progams at the same time. </p>
  
  <pre><code>using(var ctx = new DataReviewContext2())
  {
     foreach(var value in values)
     {
         value.Username = user;
         value.Changed = DateTime.Now;
         ctx.ChangeLog.Add(value);
     }
     ctx.SaveChanges();
  
  }
  </code></pre>