Summary
Creates OrSpecification<T>
for candidate property:
Join property Specifications
by logical OR. Second Specifications
is negated.
Syntax
[PublicAPI]
[NotNull]
public static IComplexSpecification<T> OrNot<T, TProperty>(Expression<Func<T, TProperty>> selector, ISpecification<TProperty> left, ISpecification<TProperty> right)
Attributes
Type |
Description |
PublicAPI |
|
NotNull |
|
Type Parameters
Name |
Description |
T |
Type of candidate. |
TProperty |
Type of candidate property to verify. |
Parameters
Name |
Type |
Description |
selector |
Expression<Func<T, TProperty>> |
Candidate property selector. |
left |
ISpecification<TProperty> |
Base first Specification . |
right |
ISpecification<TProperty> |
Base second Specification . |
Return Value
Exceptions
Type |
Description |
System.ArgumentNullException |
Thrown when selector, left or
right is null.
|
System.ArgumentException |
Thrown when selector is not valid. |