ObjectContext.DeleteObject(Object) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Marks an object for deletion.
public virtual void DeleteObject (object entity);
abstract member DeleteObject : obj -> unit
override this.DeleteObject : obj -> unit
Public Overridable Sub DeleteObject (entity As Object)
Parameters
- entity
- Object
An object that specifies the entity to delete. The object can be in any state except Detached .
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Entity Framework