Class NotSpecification<T>
Represents the specification which indicates the semantics opposite to the given specification.
Implements
Inherited Members
Namespace: Volo.Abp.Specifications
Assembly: Volo.Abp.Specifications.dll
Syntax
public class NotSpecification<T> : Specification<T>, ISpecification<T>
Type Parameters
| Name | Description |
|---|---|
| T | The type of the object to which the specification is applied. |
Constructors
NotSpecification(ISpecification<T>)
Initializes a new instance of NotSpecification<T> class.
Declaration
public NotSpecification(ISpecification<T> specification)
Parameters
| Type | Name | Description |
|---|---|---|
| ISpecification<T> | specification | The specification to be reversed. |
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()