0

I have an entity with a Guid as the primary key. I've noticed when I add multiple instances of the entity at once before doing a SaveAll that I am getting the last six bytes for all entity's Guids and the two bytes before that are sequential. A sample with three records is listed below, but I have replicated this with over 30,000 entities. Is this a problem? Am I doing something wrong?

I have a loop that is calling context.Add(entity). Once the loop is completed, I am calling context.SaveChanges. This data is persisting to Azure SQL, but I am not sure that matters.

id's of the inserted records

729051B9-FCF6-461F-9636-08DA22E39417 D41485C9-00BC-42F0-9637-08DA22E39417 AED3AE5F-E2C7-4DA3-9638-08DA22E39417

Abraham Lincoln
  • 202
  • 3
  • 14
  • If you found answer in another SO question to your exact question you should flag/vote to close as "duplicate" instead of posting [link-only-answer](https://meta.stackoverflow.com/questions/265552/when-to-flag-an-answer-as-not-an-answer) – Alexei Levenkov Apr 20 '22 at 16:12

0 Answers0