When detaching entities from the context, ________ method of DbContext is commonly used.

  • Detach
  • Dispose
  • Remove
  • Unload
The correct method is Detach. When you detach an entity from the context, it will no longer be tracked by the context for changes. This can be useful when you want to manipulate an entity outside of the context's scope.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *