bilal-fazlani / tracker-enabled-dbcontext

Tracker-enabled DbContext offers you to implement full auditing in your database
https://tracker-enabled-dbcontext.bilal-fazlani.com/
Other
217 stars 110 forks source link

We don't need to go to the db to get the record Id if we in context #140

Closed ScarlettCode closed 7 years ago

ScarlettCode commented 7 years ago

Tracker was going to the db for every record to get its id, if we haven't left the context we don't need to do that. Using the same login to check if we should go to db that is used elsewhere. Maybe that logic should all be merged together? Currently repeated in 3 places.