Summary
Verifies if
Specification
is satisfied by candidate property value.
- Namespace
- FluentSpecification
.Core .Composite - Interfaces
- Base Types
-
- object
graph BT
Type-->Base0["object"]
Type-.->Interface0["IComplexSpecification<T>"]
Type-.->Interface1["IValidationSpecification<T>"]
Type-.->Interface2["ILinqSpecification<T>"]
Type-.->Interface3["ILinqSpecification"]
click Interface3 "/FluentSpecification/api/FluentSpecification.Abstractions/ILinqSpecification"
Type-.->Interface4["ISpecification<T>"]
Type-.->Interface5["ISpecification"]
click Interface5 "/FluentSpecification/api/FluentSpecification.Abstractions/ISpecification"
Type["PropertySpecification<T, TProperty>"]
class Type type-node
Syntax
[PublicAPI]
public sealed class PropertySpecification<T, TProperty> : IComplexSpecification<T>,
IValidationSpecification<T>, ILinqSpecification<T>, ILinqSpecification, ISpecification<T>,
ISpecification
Attributes
Type | Description |
---|---|
PublicAPI |
Type Parameters
Name | Description |
---|---|
T | Type of candidate. |
TProperty | Type of candidate property to verify. |
Constructors
Name | Summary |
---|---|
Property |
Creates Specification for candidate property
|
Methods
Name | Value | Summary |
---|---|---|
GetExpression |
Expression |
Gets typed lambda
Linq Expression with candidate property verification.
|
IsSatisfiedBy |
bool |
Checks if
Specification is satisfied by candidate property value.
|
IsSatisfiedBy |
bool |
Checks if
Specification is satisfied by candidate property value.
Returns validation result no matter is satisfied or not.
|
Operators
Extension Methods
Name | Value | Summary |
---|---|---|
And |
I |
Creates logical AND
Specification with newly created TSpecification.
From SpecificationCore
|
And |
I |
Creates composite
Specification proxy for final logical AND Specification .
From SpecificationCore
|
And |
I |
Creates logical AND
Specification .
From SpecificationCore
|
AndNot |
I |
Creates logical AND
Specification with newly created and negated TSpecification.
From SpecificationCore
|
AndNot |
I |
Creates composite
Specification proxy for final logical AND Specification .
Second Specification is negated.
From SpecificationCore
|
AndNot |
I |
Creates logical AND
Specification with negated other.
From SpecificationCore
|
As |
I |
Converts
Specification to complex Specification .
From SpecificationCore
|
AsExpression |
Expression |
Converts
Specification to Linq Expression<T> .
From SpecificationCore
|
AsPredicate |
Func |
Converts
Specification to Func<T, TResult> predicate.
From SpecificationCore
|
Not |
I |
Creates logical NOT
Specification .
From SpecificationCore
|
Or |
I |
Creates logical OR
Specification with newly created TSpecification.
From SpecificationCore
|
Or |
I |
Creates composite
Specification proxy for final logical OR Specification .
From SpecificationCore
|
Or |
I |
Creates logical OR
Specification .
From SpecificationCore
|
OrNot |
I |
Creates logical OR
Specification with newly created and negated TSpecification.
From SpecificationCore
|
OrNot |
I |
Creates composite
Specification proxy for final logical OR Specification .
Second Specification is negated.
From SpecificationCore
|
OrNot |
I |
Creates logical OR
Specification with negated other.
From SpecificationCore
|
WithMessage |
I |
Creates validation
Specification proxy with specific error message factory where not satisfied by.
From SpecificationCore
|
WithMessage |
I |
Creates validation
Specification proxy with specific error message factory where not satisfied by.
From SpecificationCore
|
WithMessage |
I |
Creates validation
Specification proxy with specific error message where not satisfied by.
From SpecificationCore
|