Class SpecificationExtensions
Inheritance
Namespace: Volo.Abp.Specifications
Assembly: Volo.Abp.Specifications.dll
Syntax
public static class SpecificationExtensions : object
Methods
And<T>(ISpecification<T>, ISpecification<T>)
Combines the current specification instance with another specification instance and returns the combined specification which represents that both the current and the given specification must be satisfied by the given object.
Declaration
public static ISpecification<T> And<T>(this ISpecification<T> specification, ISpecification<T> other)
Parameters
Type | Name | Description |
---|---|---|
ISpecification<T> | specification | The specification |
ISpecification<T> | other | The specification instance with which the current specification is combined. |
Returns
Type | Description |
---|---|
ISpecification<T> | The combined specification instance. |
Type Parameters
Name | Description |
---|---|
T |
AndNot<T>(ISpecification<T>, ISpecification<T>)
Combines the current specification instance with another specification instance and returns the combined specification which represents that the current specification should be satisfied by the given object but the specified specification should not.
Declaration
public static ISpecification<T> AndNot<T>(this ISpecification<T> specification, ISpecification<T> other)
Parameters
Type | Name | Description |
---|---|---|
ISpecification<T> | specification | The specification |
ISpecification<T> | other | The specification instance with which the current specification is combined. |
Returns
Type | Description |
---|---|
ISpecification<T> | The combined specification instance. |
Type Parameters
Name | Description |
---|---|
T |
Not<T>(ISpecification<T>)
Reverses the current specification instance and returns a specification which represents the semantics opposite to the current specification.
Declaration
public static ISpecification<T> Not<T>(this ISpecification<T> specification)
Parameters
Type | Name | Description |
---|---|---|
ISpecification<T> | specification |
Returns
Type | Description |
---|---|
ISpecification<T> | The reversed specification instance. |
Type Parameters
Name | Description |
---|---|
T |
Or<T>(ISpecification<T>, ISpecification<T>)
Combines the current specification instance with another specification instance and returns the combined specification which represents that either the current or the given specification should be satisfied by the given object.
Declaration
public static ISpecification<T> Or<T>(this ISpecification<T> specification, ISpecification<T> other)
Parameters
Type | Name | Description |
---|---|---|
ISpecification<T> | specification | The specification |
ISpecification<T> | other | The specification instance with which the current specification is combined. |
Returns
Type | Description |
---|---|
ISpecification<T> | The combined specification instance. |
Type Parameters
Name | Description |
---|---|
T |