GenericService(TModel, TEntity).FindBy Method

Template MVC

GenericServiceTModel, TEntityFindBy Method

Retuns an IEnumerable of models based on the expresion, retreives entities from the database and convert them to models

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

Parameters

predicate
Type: System.Linq.ExpressionsExpressionFuncTModel, Boolean
The expression to filter the selection

Return Value

Type: IEnumerableTModel
The IEnumerable of models based on the predicate

Implements

IServiceTModelFindBy(ExpressionFuncTModel, Boolean)
See Also