Class ExpressionSpecification<T>
Represents the specification which is represented by the corresponding LINQ expression.
Implements
Inherited Members
Namespace: Volo.Abp.Specifications
Assembly: Volo.Abp.Specifications.dll
Syntax
public class ExpressionSpecification<T> : Specification<T>, ISpecification<T>
Type Parameters
Name | Description |
---|---|
T | The type of the object to which the specification is applied. |
Constructors
ExpressionSpecification(Expression<Func<T, Boolean>>)
Initializes a new instance of ExpressionSpecification<T>
class.
Declaration
public ExpressionSpecification(Expression<Func<T, bool>> expression)
Parameters
Type | Name | Description |
---|---|---|
Expression<Func<T, System.Boolean>> | expression | The LINQ expression which represents the current specification. |
Methods
ToExpression()
Gets the LINQ expression which represents the current specification.
Declaration
public override Expression<Func<T, bool>> ToExpression()
Returns
Type | Description |
---|---|
Expression<Func<T, System.Boolean>> | The LINQ expression. |
Overrides
Volo.Abp.Specifications.Specification<T>.ToExpression()