Class AndNotSpecification<T>
Represents the combined specification which indicates that the first specification can be satisifed by the given object whereas the second one cannot.
Inherited Members
Namespace: Volo.Abp.Specifications
Assembly: Volo.Abp.Specifications.dll
Syntax
public class AndNotSpecification<T> : CompositeSpecification<T>, ICompositeSpecification<T>, ISpecification<T>
Type Parameters
Name | Description |
---|---|
T | The type of the object to which the specification is applied. |
Constructors
AndNotSpecification(ISpecification<T>, ISpecification<T>)
Constructs a new instance of AndNotSpecification<T> class.
Declaration
public AndNotSpecification(ISpecification<T> left, ISpecification<T> right)
Parameters
Type | Name | Description |
---|---|---|
ISpecification<T> | left | The first specification. |
ISpecification<T> | right | The second 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()