ObjectSet<TEntity>::Detach Method (TEntity)
.NET Framework (current version)
Removes the object from the object context.
Assembly: System.Data.Entity (in System.Data.Entity.dll)
Parameters
- entity
-
Type:
TEntity
Object to be detached. Only the entity is removed; if there are any related objects that are being tracked by the same ObjectStateManager, those will not be detached automatically.
Implements
IObjectSet<TEntity>::Detach(TEntity)
.NET Framework
Available since 4.0
Available since 4.0
Show: