IGenericRepository(TEntity).DeleteBy Method

Template MVC

IGenericRepositoryTEntityDeleteBy Method

Marks the entities that match with the given predicate as deleted, they will be deleted of the database on Save

Namespace:  Template.Core.Interface
Assembly:  Template.Repository (in Template.Repository.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
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
See Also