MongoRepository(T, TKey).Delete Method (ObjectId)

MongoRepository

MongoRepositoryT, TKeyDelete Method (ObjectId)
Deletes an entity from the repository by its ObjectId.

Namespace: MongoRepository
Assembly: MongoRepository.Net45 (in MongoRepository.Net45.dll) Version: 1.6.11.0 (1.6.11.0)
Syntax
public virtual void Delete(
	ObjectId id
)
Public Overridable Sub Delete ( 
	id As ObjectId
)
public:
virtual void Delete(
	ObjectId id
)
abstract Delete : 
        id : ObjectId -> unit 
override Delete : 
        id : ObjectId -> unit 

Parameters

id
Type: ObjectId
The ObjectId of the entity.
See Also