GenericService(TModel, TEntity).DeleteBy Method

Template MVC

GenericServiceTModel, TEntityDeleteBy Method

Deletes any match with the given predicate

Namespace:  Template.Service.Core
Assembly:  Template.Service (in Template.Service.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public int DeleteBy(
	Expression<Func<TModel, bool>> predicate
)

Parameters

predicate
Type: System.Linq.ExpressionsExpressionFuncTModel, Boolean
The predcateto filter the result

Return Value

Type: Int32
The number of affected rows entity

Implements

IServiceTModelDeleteBy(ExpressionFuncTModel, Boolean)
See Also