Template Documentation
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: Int32The number of affected rows entity
See Also