DbSet.Remove Method
Entity Framework 5.0
Marks the given entity as Deleted. When the changes are saved, the entity is deleted from the database. The entity must exist in the context in some other state before this method is called.
Namespace: System.Data.Entity
Assembly: EntityFramework (in EntityFramework.dll)
Parameters
- entity
- Type: System.Object
The entity to remove.
Show: