Interface ISpecification<T>
Represents that the implemented classes are specifications. For more information about the specification pattern, please refer to http://martinfowler.com/apsupp/spec.pdf.
Namespace: Volo.Abp.Specifications
Assembly: Volo.Abp.Specifications.dll
Syntax
public interface ISpecification<T>
Type Parameters
Name | Description |
---|---|
T | The type of the object to which the specification is applied. |
Methods
IsSatisfiedBy(T)
Returns a
Declaration
bool IsSatisfiedBy(T obj)
Parameters
Type | Name | Description |
---|---|---|
T | obj | The object to which the specification is applied. |
Returns
Type | Description |
---|---|
System.Boolean | True if the specification is satisfied, otherwise false. |
ToExpression()
Gets the LINQ expression which represents the current specification.
Declaration
Expression<Func<T, bool>> ToExpression()
Returns
Type | Description |
---|---|
Expression<Func<T, System.Boolean>> | The LINQ expression. |