IService(TModel).DeleteBy Method

Template MVC

IServiceTModelDeleteBy Method

Deletes any match with the given predicate

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