Deletes entity with key from the database.
Namespace: LiteRepositoryAssembly: LiteRepository (in LiteRepository.dll) Version: 2.0.4
Syntaxpublic virtual int Delete<E, K>(
K key
)
where E : class, K
where K : class
Parameters
- key
- Type: K
Key of the entity.
Type Parameters
- E
- Type of the entity.
- K
- Type of the key.
Return Value
Type:
Int32Count of a effected enities.
See Also