Template Documentation
IGenericRepositoryTEntitySelectWhereTResult Method |
This function allows to select the specific properties and filter by where clause on database, not on memory, in that way it improves the performace
Namespace: Template.Core.Interface
Assembly: Template.Repository (in Template.Repository.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
IEnumerable<TResult> SelectWhere<TResult>( Func<TEntity, TResult> selector, Expression<Func<TEntity, bool>> predicate )
Parameters
- selector
- Type: SystemFuncTEntity, TResult
The properties to select - predicate
- Type: System.Linq.ExpressionsExpressionFuncTEntity, Boolean
The where clause
Type Parameters
- TResult
- The select result type
Return Value
Type: IEnumerableTResultThe IEnumerable of the result
See Also