SpecificationCore Class

Summary

Extensions for ISpecification<T>.
Namespace
FluentSpecification.Core
Base Types
  • object
graph BT Type-->Base0["object"] Type["SpecificationCore"] class Type type-node

Syntax

[PublicAPI]
public static class SpecificationCore

Attributes

Type Description
PublicAPI

Methods

Name Value Summary
And<T, TSpecification>(ISpecification<T>) IComplexSpecification<T>
Creates logical AND Specification with newly created TSpecification.
static
And<T>(ISpecification<T>) ICompositeSpecification<T>
Creates composite Specification proxy for final logical AND Specification.
static
And<T>(ISpecification<T>, ISpecification<T>) IComplexSpecification<T>
Creates logical AND Specification.
static
AndNot<T, TSpecification>(ISpecification<T>) IComplexSpecification<T>
Creates logical AND Specification with newly created and negated TSpecification.
static
AndNot<T>(ISpecification<T>) ICompositeSpecification<T>
Creates composite Specification proxy for final logical AND Specification. Second Specification is negated.
static
AndNot<T>(ISpecification<T>, ISpecification<T>) IComplexSpecification<T>
Creates logical AND Specification with negated other.
static
AsComplexSpecification<T>(ISpecification<T>) IComplexSpecification<T>
Converts Specification to complex Specification.
static
AsExpression<T>(ISpecification<T>) Expression<Func<T, bool>>
Converts Specification to Linq Expression<T>.
static
AsPredicate<T>(ISpecification<T>) Func<T, bool>
Converts Specification to Func<T, TResult> predicate.
static
Not<T>(ISpecification<T>) IComplexSpecification<T>
Creates logical NOT Specification.
static
Or<T, TSpecification>(ISpecification<T>) IComplexSpecification<T>
Creates logical OR Specification with newly created TSpecification.
static
Or<T>(ISpecification<T>) ICompositeSpecification<T>
Creates composite Specification proxy for final logical OR Specification.
static
Or<T>(ISpecification<T>, ISpecification<T>) IComplexSpecification<T>
Creates logical OR Specification.
static
OrNot<T, TSpecification>(ISpecification<T>) IComplexSpecification<T>
Creates logical OR Specification with newly created and negated TSpecification.
static
OrNot<T>(ISpecification<T>) ICompositeSpecification<T>
Creates composite Specification proxy for final logical OR Specification. Second Specification is negated.
static
OrNot<T>(ISpecification<T>, ISpecification<T>) IComplexSpecification<T>
Creates logical OR Specification with negated other.
static
WithMessage<T>(ISpecification<T>, Func<T, IReadOnlyDictionary<string, object>, string>) IComplexSpecification<T>
Creates validation Specification proxy with specific error message factory where not satisfied by.
static
WithMessage<T>(ISpecification<T>, Func<T, string>) IComplexSpecification<T>
Creates validation Specification proxy with specific error message factory where not satisfied by.
static
WithMessage<T>(ISpecification<T>, string) IComplexSpecification<T>
Creates validation Specification proxy with specific error message where not satisfied by.
static
GitHub