GenericRepository(TEntity).Delete Method

Template MVC

GenericRepositoryTEntityDelete Method

Marks the given entity as deleted, the entity will be deleted on Save

Namespace:  Template.Repository.Core
Assembly:  Template.Repository (in Template.Repository.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public virtual TEntity Delete(
	TEntity entity
)

Parameters

entity
Type: TEntity
The entity to be removed

Return Value

Type: TEntity
The deleted entity

Implements

IGenericRepositoryTEntityDelete(TEntity)
See Also