IService(TModel).FindBy Method

Template MVC

IServiceTModelFindBy Method

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

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