SpecificationLambdaT Method |
Creates a specification that will return the objects that match the specified expression.
Namespace:
Enkoni.Framework
Assembly:
Enkoni.Framework.Specifications (in Enkoni.Framework.Specifications.dll) Version: 1.3.0.1
Syntaxpublic static ISpecification<T> Lambda<T>(
Expression<Func<T, bool>> expression
)
Public Shared Function Lambda(Of T) (
expression As Expression(Of Func(Of T, Boolean))
) As ISpecification(Of T)
public:
generic<typename T>
static ISpecification<T>^ Lambda(
Expression<Func<T, bool>^>^ expression
)
static member Lambda :
expression : Expression<Func<'T, bool>> -> ISpecification<'T>
Parameters
- expression
- Type: System.Linq.ExpressionsExpressionFuncT, Boolean
The expression that acts as a filter.
Type Parameters
- T
- The type of object that is ultimately selected by the specification.
Return Value
Type:
ISpecificationTA specification that will only return the objects that match the expression.
See Also