Stop SCOPE_IDENTITY on Framework Entity insert

We are currently doing several inserts in our application where we do not need the ID that is generated from this insert.

After looking at the SQL profiler after insert there is always a SCOPE_IDENTITY statement to return the ID for the object, on load this affects performance and creates database locks that are not needed.

Is there a way to ask Entity Framework to add an entity without updating the id?

+3


source to share





All Articles