GenericRepository(TEntity).DeleteBy Method

Template MVC

GenericRepositoryTEntityDeleteBy Method

Marks the entities that match with the given predicate as deleted, they will be deleted of the database 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 int DeleteBy(
	Expression<Func<TEntity, bool>> predicate
)

Parameters

predicate
Type: System.Linq.ExpressionsExpressionFuncTEntity, Boolean
The predcatevto filter the result

Return Value

Type: Int32
The number of affected rows entity

Implements

IGenericRepositoryTEntityDeleteBy(ExpressionFuncTEntity, Boolean)
See Also