src/Shared/EntityFramework/Core/Objects/ObjectSet.cs
/// <summary>Marks an object for deletion. </summary>
/// <param name="entity">
/// An object that represents the entity to delete. The object can be in any state except
/// <see
///     cref="F:System.Data.Entity.EntityState.Detached" />
/// .
/// </param>
Marks an object for deletion.
Marks an object for deletion .
public void DeleteObject(TEntity entity)
        {
            Context.DeleteObject(entity, EntitySet);
        }
public void DeleteObject ( TEntity entity ) { Context . DeleteObject ( entity , EntitySet ) ; }
Marks an object for deletion.
Marks an object for deletion .
// this method is expected to behave exactly like ObjectContext.DeleteObject -- see devnote at the top of this class // Note that in this case we use an internal DeleteObject overload so we can have the context validate // the EntitySet after it verifies that the specified object is in the context at all.
entity
TEntity
An object that represents the entity to delete. The object can be in any state except


An object that represents the entity to delete . The object can be in any state except