I have a process that needs the Primary Key ID of a newly added Entity every time an Entity is added. I have overriden the SaveChanges() method of DbContext, and looked at the ChangeTracker, but I don’t see any dynamic way to retrieve the Entities that are newly added. Is there a good method to do so?
I have a process that needs the Primary Key ID of a newly added
Share
Query the change tracker for new entities.