Specification Class

Summary

API entry point.
Namespace
FluentSpecification
Base Types
  • object
graph BT Type-->Base0["object"] Type["Specification"] class Type type-node

Syntax

[PublicAPI]
public static class Specification

Attributes

Type Description
PublicAPI

Properties

Name Value Summary
LinqToEntities bool
Global switch if Linq Expressions should be build for LinqToEntities.
static

Methods

Name Value Summary
All<T, TPropertyType>(Expression<Func<T, IEnumerable<TPropertyType>>>, ISpecification<TPropertyType>) IComplexSpecification<T>

Creates AllSpecification<T, TType> for candidate property:

Checks if ISpecification<T> is satisfied by ALL elements in candidate property collection.

static
All<T, TPropertyType>(ICompositeSpecification<T>, Expression<Func<T, IEnumerable<TPropertyType>>>, ISpecification<TPropertyType>) IComplexSpecification<T>

Composes self Specification with AllSpecification<T, TType> for candidate property:

Checks if ISpecification<T> is satisfied by ALL elements in candidate property collection.

static
All<T, TType>(ICompositeSpecification<T>, ISpecification<TType>) IComplexSpecification<T>

Composes self Specification with AllSpecification<T, TType>:

Checks if ISpecification<T> is satisfied by ALL elements in candidate collection.

static
All<T, TType>(ISpecification<TType>) IComplexSpecification<T>

Creates AllSpecification<T, TType>:

Checks if ISpecification<T> is satisfied by ALL elements in candidate collection.

static
And<T, TProperty>(Expression<Func<T, TProperty>>, ISpecification<TProperty>, ISpecification<TProperty>) IComplexSpecification<T>

Creates AndSpecification<T> for candidate property:

Join property Specifications by logical AND.

static
And<T>(ISpecification<T>, ISpecification<T>) IComplexSpecification<T>

Creates AndSpecification<T>:

Join Specifications by logical AND.

static
AndNot<T, TProperty>(Expression<Func<T, TProperty>>, ISpecification<TProperty>, ISpecification<TProperty>) IComplexSpecification<T>

Creates AndSpecification<T> for candidate property:

Join property Specifications by logical AND. Second Specifications is negated.

static
AndNot<T>(ISpecification<T>, ISpecification<T>) IComplexSpecification<T>

Creates AndSpecification<T>:

Join Specifications by logical AND. Second Specifications is negated.

static
Any<T, TPropertyType>(Expression<Func<T, IEnumerable<TPropertyType>>>, ISpecification<TPropertyType>) IComplexSpecification<T>

Creates AnySpecification<T, TType> for candidate property:

Checks if ISpecification<T> is satisfied by ANY element in candidate property collection.

static
Any<T, TPropertyType>(ICompositeSpecification<T>, Expression<Func<T, IEnumerable<TPropertyType>>>, ISpecification<TPropertyType>) IComplexSpecification<T>

Composes self Specification with AnySpecification<T, TType> for candidate property:

Checks if ISpecification<T> is satisfied by ANY element in candidate property collection.

static
Any<T, TType>(ICompositeSpecification<T>, ISpecification<TType>) IComplexSpecification<T>

Composes self Specification with AnySpecification<T, TType>:

Checks if ISpecification<T> is satisfied by ANY element in candidate collection.

static
Any<T, TType>(ISpecification<TType>) IComplexSpecification<T>

Creates AnySpecification<T, TType>:

Checks if ISpecification<T> is satisfied by ANY element in candidate collection.

static
Cast<T, TCast>(ICompositeSpecification<T>, ISpecification<TCast>) IComplexSpecification<T>

Composes self Specification with CastSpecification<T, TCast>:

Converts Specification (candidate to verification) from T to TCast.

static
Cast<T, TCast>(ISpecification<TCast>) IComplexSpecification<T>

Creates CastSpecification<T, TCast>:

Converts Specification (candidate to verification) from T to TCast.

static
Cast<T, TProperty, TCast>(Expression<Func<T, TProperty>>, ISpecification<TCast>) IComplexSpecification<T>

Creates CastSpecification<T, TCast> for candidate property:

Converts Specification (candidate property to verification) from TProperty to TCast.

static
Cast<T, TProperty, TCast>(ICompositeSpecification<T>, Expression<Func<T, TProperty>>, ISpecification<TCast>) IComplexSpecification<T>

Composes self Specification with CastSpecification<T, TCast> for candidate property:

Converts Specification (candidate property to verification) from TProperty to TCast.

static
Contains(ICompositeSpecification<string>, string) IComplexSpecification<string>

Composes self Specification with ContainsSpecification:

Checks if string contains another string (case sensitive).

static
Contains(string) IComplexSpecification<string>

Creates ContainsSpecification:

Checks if string contains another string (case sensitive).

static
Contains<T, TPropertyType>(Expression<Func<T, IEnumerable<TPropertyType>>>, TPropertyType, IEqualityComparer<TPropertyType>) IComplexSpecification<T>

Creates ContainsSpecification<T, TType> for candidate property:

Checks if candidate property contains expected element.

static
Contains<T, TPropertyType>(ICompositeSpecification<T>, Expression<Func<T, IEnumerable<TPropertyType>>>, TPropertyType, IEqualityComparer<TPropertyType>) IComplexSpecification<T>

Composes self Specification with ContainsSpecification<T, TType> for candidate property:

Checks if candidate property contains expected element.

static
Contains<T, TType>(ICompositeSpecification<T>, TType, IEqualityComparer<TType>) IComplexSpecification<T>

Composes self Specification with ContainsSpecification<T, TType>:

Checks if candidate contains expected element.

static
Contains<T, TType>(TType, IEqualityComparer<TType>) IComplexSpecification<T>

Creates ContainsSpecification<T, TType>:

Checks if candidate contains expected element.

static
Contains<T>(Expression<Func<T, string>>, string) IComplexSpecification<T>

Creates ContainsSpecification for candidate property:

Checks if string contains another string (case sensitive).

static
Contains<T>(ICompositeSpecification<T>, Expression<Func<T, string>>, string) IComplexSpecification<T>

Composes self Specification with ContainsSpecification for candidate property:

Checks if string contains another string (case sensitive).

static
CreditCard() IComplexSpecification<string>

Creates CreditCardSpecification:

Checks if string is valid credit card number.

static
CreditCard(ICompositeSpecification<string>) IComplexSpecification<string>

Composes self Specification with CreditCardSpecification:

Checks if string is valid credit card number.

static
CreditCard<T>(Expression<Func<T, string>>) IComplexSpecification<T>

Creates CreditCardSpecification for candidate property:

Checks if string is valid credit card number.

static
CreditCard<T>(ICompositeSpecification<T>, Expression<Func<T, string>>) IComplexSpecification<T>

Composes self Specification with CreditCardSpecification for candidate property:

Checks if string is valid credit card number.

static
Email() IComplexSpecification<string>

Creates EmailSpecification:

Checks if string is valid email address.

static
Email(ICompositeSpecification<string>) IComplexSpecification<string>

Composes self Specification with EmailSpecification:

Checks if string is valid email address.

static
Email<T>(Expression<Func<T, string>>) IComplexSpecification<T>

Creates EmailSpecification for candidate property:

Checks if string is valid email address.

static
Email<T>(ICompositeSpecification<T>, Expression<Func<T, string>>) IComplexSpecification<T>

Composes self Specification with EmailSpecification for candidate property:

Checks if string is valid email address.

static
Empty<T, TProperty>(Expression<Func<T, TProperty>>) IComplexSpecification<T>

Creates EmptySpecification<T> for candidate property:

Checks if candidate property is empty.

static
Empty<T, TProperty>(ICompositeSpecification<T>, Expression<Func<T, TProperty>>) IComplexSpecification<T>

Composes self Specification with EmptySpecification<T> for candidate property:

Checks if candidate property is empty.

static
Empty<T>() IComplexSpecification<T>

Creates EmptySpecification<T>:

Checks if candidate is empty.

static
Empty<T>(ICompositeSpecification<T>) IComplexSpecification<T>

Composes self Specification with EmptySpecification<T>:

Checks if candidate is empty.

static
Equal<T, TProperty>(Expression<Func<T, TProperty>>, TProperty, IEqualityComparer<TProperty>) IComplexSpecification<T>

Creates EqualSpecification<T> for candidate property:

Checks if candidate property is equal to expected object.

static
Equal<T, TProperty>(ICompositeSpecification<T>, Expression<Func<T, TProperty>>, TProperty, IEqualityComparer<TProperty>) IComplexSpecification<T>

Composes self Specification with EqualSpecification<T> for candidate property:

Checks if candidate property is equal to expected object.

static
Equal<T>(ICompositeSpecification<T>, T, IEqualityComparer<T>) IComplexSpecification<T>

Composes self Specification with EqualSpecification<T>:

Checks if candidate object is equal to expected object.

static
Equal<T>(T, IEqualityComparer<T>) IComplexSpecification<T>

Creates EqualSpecification<T>:

Checks if candidate object is equal to expected object.

static
ExclusiveBetween<T, TProperty>(Expression<Func<T, TProperty>>, TProperty, TProperty, IComparer<TProperty>) IComplexSpecification<T>

Creates ExclusiveBetweenSpecification<T> for candidate property:

Checks if candidate property is between (exclusive) min and max value.

static
ExclusiveBetween<T, TProperty>(ICompositeSpecification<T>, Expression<Func<T, TProperty>>, TProperty, TProperty, IComparer<TProperty>) IComplexSpecification<T>

Composes self Specification with ExclusiveBetweenSpecification<T> for candidate property:

Checks if candidate property is between (exclusive) min and max value.

static
ExclusiveBetween<T>(ICompositeSpecification<T>, T, T, IComparer<T>) IComplexSpecification<T>

Composes self Specification with ExclusiveBetweenSpecification<T>:

Checks if candidate object is between (exclusive) min and max value.

static
ExclusiveBetween<T>(T, T, IComparer<T>) IComplexSpecification<T>

Creates ExclusiveBetweenSpecification<T>:

Checks if candidate object is between (exclusive) min and max value.

static
Expression<T, TProperty>(Expression<Func<T, TProperty>>, Expression<Func<TProperty, bool>>) IComplexSpecification<T>

Creates ExpressionSpecification<T> for candidate property:

Checks if external Linq Expression is satisfied by candidate property.

static
Expression<T, TProperty>(ICompositeSpecification<T>, Expression<Func<T, TProperty>>, Expression<Func<TProperty, bool>>) IComplexSpecification<T>

Composes self Specification with ExpressionSpecification<T> for candidate property:

Checks if external Linq Expression is satisfied by candidate property.

static
Expression<T>(Expression<Func<T, bool>>) IComplexSpecification<T>

Creates ExpressionSpecification<T>:

Checks if external Linq Expression is satisfied by candidate.

static
Expression<T>(ICompositeSpecification<T>, Expression<Func<T, bool>>) IComplexSpecification<T>

Composes self Specification with ExpressionSpecification<T>:

Checks if external Linq Expression is satisfied by candidate.

static
False() IComplexSpecification<bool>

Creates TrueSpecification:

Checks if candidate is False.

static
False(ICompositeSpecification<bool>) IComplexSpecification<bool>

Composes self Specification with FalseSpecification:

Checks if candidate is False.

static
False<T>(Expression<Func<T, bool>>) IComplexSpecification<T>

Creates FalseSpecification for candidate property:

Checks if candidate property is False.

static
False<T>(ICompositeSpecification<T>, Expression<Func<T, bool>>) IComplexSpecification<T>

Composes self Specification with FalseSpecification for candidate property:

Checks if candidate property is False.

static
ForProperty<T, TProperty>(Expression<Func<T, TProperty>>, ISpecification<TProperty>) IComplexSpecification<T>

Creates PropertySpecification<T, TProperty>:

Verifies if Specification is satisfied by candidate property value.

static
ForProperty<T, TProperty>(ICompositeSpecification<T>, Expression<Func<T, TProperty>>, ISpecification<TProperty>) IComplexSpecification<T>

Composes self Specification with PropertySpecification<T, TProperty>:

Verifies if Specification is satisfied by candidate property value.

static
GreaterThan<T, TProperty>(Expression<Func<T, TProperty>>, TProperty, IComparer<TProperty>) IComplexSpecification<T>

Creates GreaterThanSpecification<T> for candidate property:

Checks if candidate property is greater than expected value.

static
GreaterThan<T, TProperty>(ICompositeSpecification<T>, Expression<Func<T, TProperty>>, TProperty, IComparer<TProperty>) IComplexSpecification<T>

Composes self Specification with GreaterThanSpecification<T> for candidate property:

Checks if candidate property is greater than expected value.

static
GreaterThan<T>(ICompositeSpecification<T>, T, IComparer<T>) IComplexSpecification<T>

Composes self Specification with GreaterThanSpecification<T>:

Checks if candidate object is greater than expected value.

static
GreaterThan<T>(T, IComparer<T>) IComplexSpecification<T>

Creates GreaterThanSpecification<T>:

Checks if candidate object is greater than expected value.

static
GreaterThanOrEqual<T, TProperty>(Expression<Func<T, TProperty>>, TProperty, IComparer<TProperty>) IComplexSpecification<T>

Creates GreaterThanOrEqualSpecification<T> candidate property:

Checks if candidate property is greater than or equal to expected value.

static
GreaterThanOrEqual<T, TProperty>(ICompositeSpecification<T>, Expression<Func<T, TProperty>>, TProperty, IComparer<TProperty>) IComplexSpecification<T>

Composes self Specification with GreaterThanOrEqualSpecification<T> candidate property:

Checks if candidate property is greater than or equal to expected value.

static
GreaterThanOrEqual<T>(ICompositeSpecification<T>, T, IComparer<T>) IComplexSpecification<T>

Composes self Specification with GreaterThanOrEqualSpecification<T>:

Checks if candidate object is greater than or equal to expected value.

static
GreaterThanOrEqual<T>(T, IComparer<T>) IComplexSpecification<T>

Creates GreaterThanOrEqualSpecification<T>:

Checks if candidate object is greater than or equal to expected value.

static
InclusiveBetween<T, TProperty>(Expression<Func<T, TProperty>>, TProperty, TProperty, IComparer<TProperty>) IComplexSpecification<T>

Creates InclusiveBetweenSpecification<T> for candidate property:

Checks if candidate property is between (inclusive) min and max value.

static
InclusiveBetween<T, TProperty>(ICompositeSpecification<T>, Expression<Func<T, TProperty>>, TProperty, TProperty, IComparer<TProperty>) IComplexSpecification<T>

Composes self Specification with InclusiveBetweenSpecification<T> for candidate property:

Checks if candidate property is between (inclusive) min and max value.

static
InclusiveBetween<T>(ICompositeSpecification<T>, T, T, IComparer<T>) IComplexSpecification<T>

Composes self Specification with InclusiveBetweenSpecification<T>:

Checks if candidate object is between (inclusive) min and max value.

static
InclusiveBetween<T>(T, T, IComparer<T>) IComplexSpecification<T>

Creates InclusiveBetweenSpecification<T>:

Checks if candidate object is between (inclusive) min and max value.

static
IsNotType<T, TProperty>(Expression<Func<T, TProperty>>, Type) IComplexSpecification<T>

Creates IsTypeSpecification<T> negation for candidate property:

Checks if candidate property is not compatible with a given type.

static
IsNotType<T, TProperty>(ICompositeSpecification<T>, Expression<Func<T, TProperty>>, Type) IComplexSpecification<T>

Composes self Specification with IsTypeSpecification<T> negation for candidate property:

Checks if candidate property is not compatible with a given type.

static
IsNotType<T>(ICompositeSpecification<T>, Type) IComplexSpecification<T>

Composes self Specification with IsTypeSpecification<T> negation:

Checks if candidate is not compatible with a given type.

static
IsNotType<T>(Type) IComplexSpecification<T>

Creates IsTypeSpecification<T> negation:

Checks if candidate is not compatible with a given type.

static
IsType<T, TProperty>(Expression<Func<T, TProperty>>, Type) IComplexSpecification<T>

Creates IsTypeSpecification<T> for candidate property:

Checks if candidate property is compatible with a given type.

static
IsType<T, TProperty>(ICompositeSpecification<T>, Expression<Func<T, TProperty>>, Type) IComplexSpecification<T>

Composes self Specification with IsTypeSpecification<T> for candidate property:

Checks if candidate property is compatible with a given type.

static
IsType<T>(ICompositeSpecification<T>, Type) IComplexSpecification<T>

Composes self Specification with IsTypeSpecification<T>:

Checks if candidate is compatible with a given type.

static
IsType<T>(Type) IComplexSpecification<T>

Creates IsTypeSpecification<T>:

Checks if candidate is compatible with a given type.

static
Length<T, TProperty>(Expression<Func<T, TProperty>>, int) IComplexSpecification<T>

Creates LengthSpecification<T> for candidate property:

Checks if length of candidate property is equal to specific value.

static
Length<T, TProperty>(ICompositeSpecification<T>, Expression<Func<T, TProperty>>, int) IComplexSpecification<T>

Composes self Specification with LengthSpecification<T> for candidate property:

Checks if length of candidate property is equal to specific value.

static
Length<T>(ICompositeSpecification<T>, int) IComplexSpecification<T>

Composes self Specification with LengthSpecification<T>:

Checks if length of candidate is equal to specific value.

static
Length<T>(int) IComplexSpecification<T>

Creates LengthSpecification<T>:

Checks if length of candidate is equal to specific value.

static
LengthBetween<T, TProperty>(Expression<Func<T, TProperty>>, int, int) IComplexSpecification<T>

Creates LengthBetweenSpecification<T> for candidate property:

Checks if length of candidate property is between Min and Max values.

static
LengthBetween<T, TProperty>(ICompositeSpecification<T>, Expression<Func<T, TProperty>>, int, int) IComplexSpecification<T>

Composes self Specification with LengthBetweenSpecification<T> for candidate property:

Checks if length of candidate property is between Min and Max values.

static
LengthBetween<T>(ICompositeSpecification<T>, int, int) IComplexSpecification<T>

Composes self Specification with LengthBetweenSpecification<T>:

Checks if length of candidate is between Min and Max values.

static
LengthBetween<T>(int, int) IComplexSpecification<T>

Creates LengthBetweenSpecification<T>:

Checks if length of candidate is between Min and Max values.

static
LessThan<T, TProperty>(Expression<Func<T, TProperty>>, TProperty, IComparer<TProperty>) IComplexSpecification<T>

Creates LessThanSpecification<T> for candidate property:

Checks if candidate property is lower than expected value.

static
LessThan<T, TProperty>(ICompositeSpecification<T>, Expression<Func<T, TProperty>>, TProperty, IComparer<TProperty>) IComplexSpecification<T>

Composes self Specification with LessThanSpecification<T> for candidate property:

Checks if candidate property is lower than expected value.

static
LessThan<T>(ICompositeSpecification<T>, T, IComparer<T>) IComplexSpecification<T>

Composes self Specification with LessThanSpecification<T>:

Checks if candidate object is lower than expected value.

static
LessThan<T>(T, IComparer<T>) IComplexSpecification<T>

Creates LessThanSpecification<T>:

Checks if candidate object is lower than expected value.

static
LessThanOrEqual<T, TProperty>(Expression<Func<T, TProperty>>, TProperty, IComparer<TProperty>) IComplexSpecification<T>

Creates LessThanOrEqualSpecification<T> for candidate property:

Checks if candidate property is lower than or equal to expected value.

static
LessThanOrEqual<T, TProperty>(ICompositeSpecification<T>, Expression<Func<T, TProperty>>, TProperty, IComparer<TProperty>) IComplexSpecification<T>

Composes self Specification with LessThanOrEqualSpecification<T> for candidate property:

Checks if candidate property is lower than or equal to expected value.

static
LessThanOrEqual<T>(ICompositeSpecification<T>, T, IComparer<T>) IComplexSpecification<T>

Composes self Specification with LessThanOrEqualSpecification<T>:

Checks if candidate object is lower than or equal to expected value.

static
LessThanOrEqual<T>(T, IComparer<T>) IComplexSpecification<T>

Creates LessThanOrEqualSpecification<T>:

Checks if candidate object is lower than or equal to expected value.

static
Match(ICompositeSpecification<string>, string, RegexOptions) IComplexSpecification<string>

Composes self Specification with MatchSpecification:

Checks if string candidate match a given Regex pattern.

static
Match(string, RegexOptions) IComplexSpecification<string>

Creates MatchSpecification:

Checks if string candidate match a given Regex pattern.

static
Match<T>(Expression<Func<T, string>>, string, RegexOptions) IComplexSpecification<T>

Creates MatchSpecification for candidate property:

Checks if string candidate property match a given Regex pattern.

static
Match<T>(ICompositeSpecification<T>, Expression<Func<T, string>>, string, RegexOptions) IComplexSpecification<T>

Composes self Specification with MatchSpecification for candidate property:

Checks if string candidate property match a given Regex pattern.

static
MaxLength<T, TProperty>(Expression<Func<T, TProperty>>, int) IComplexSpecification<T>

Creates MaxLengthSpecification<T> for candidate property:

Checks if length of candidate property is lower than or equal to Max value.

static
MaxLength<T, TProperty>(ICompositeSpecification<T>, Expression<Func<T, TProperty>>, int) IComplexSpecification<T>

Composes self Specification with MaxLengthSpecification<T> for candidate property:

Checks if length of candidate property is lower than or equal to Max value.

static
MaxLength<T>(ICompositeSpecification<T>, int) IComplexSpecification<T>

Composes self Specification with MinLengthSpecification<T>:

Checks if length of candidate is lower than or equal to Max value.

static
MaxLength<T>(int) IComplexSpecification<T>

Creates MinLengthSpecification<T>:

Checks if length of candidate is lower than or equal to Max value.

static
MinLength<T, TProperty>(Expression<Func<T, TProperty>>, int) IComplexSpecification<T>

Creates MinLengthSpecification<T> for candidate property:

Checks if length of candidate property is greater than or equal to Min value.

static
MinLength<T, TProperty>(ICompositeSpecification<T>, Expression<Func<T, TProperty>>, int) IComplexSpecification<T>

Composes self Specification with MinLengthSpecification<T> for candidate property:

Checks if length of candidate property is greater than or equal to Min value.

static
MinLength<T>(ICompositeSpecification<T>, int) IComplexSpecification<T>

Composes self Specification with MinLengthSpecification<T>:

Checks if length of candidate is greater than or equal to Min value.

static
MinLength<T>(int) IComplexSpecification<T>

Creates MinLengthSpecification<T>:

Checks if length of candidate is greater than or equal to Min value.

static
NotContains(ICompositeSpecification<string>, string) IComplexSpecification<string>

Composes self Specification with ContainsSpecification negation:

Checks if string not contains another string (case sensitive).

static
NotContains(string) IComplexSpecification<string>

Creates ContainsSpecification negation:

Checks if string not contains another string (case sensitive).

static
NotContains<T, TPropertyType>(Expression<Func<T, IEnumerable<TPropertyType>>>, TPropertyType, IEqualityComparer<TPropertyType>) IComplexSpecification<T>

Creates ContainsSpecification<T, TType> negation for candidate property:

Checks if candidate property not contains expected element.

static
NotContains<T, TPropertyType>(ICompositeSpecification<T>, Expression<Func<T, IEnumerable<TPropertyType>>>, TPropertyType, IEqualityComparer<TPropertyType>) IComplexSpecification<T>

Composes self Specification with ContainsSpecification<T, TType> negation for candidate property:

Checks if candidate property not contains expected element.

static
NotContains<T, TType>(ICompositeSpecification<T>, TType, IEqualityComparer<TType>) IComplexSpecification<T>

Composes self Specification with ContainsSpecification<T, TType> negation:

Checks if candidate not contains expected element.

static
NotContains<T, TType>(TType, IEqualityComparer<TType>) IComplexSpecification<T>

Creates ContainsSpecification<T, TType> negation:

Checks if candidate not contains expected element.

static
NotContains<T>(Expression<Func<T, string>>, string) IComplexSpecification<T>

Creates ContainsSpecification negation for candidate property:

Checks if string not contains another string (case sensitive).

static
NotContains<T>(ICompositeSpecification<T>, Expression<Func<T, string>>, string) IComplexSpecification<T>

Composes self Specification with ContainsSpecification negation for candidate property:

Checks if string not contains another string (case sensitive).

static
NotCreditCard() IComplexSpecification<string>

Creates CreditCardSpecification negation:

Checks if string is not valid credit card number.

static
NotCreditCard(ICompositeSpecification<string>) IComplexSpecification<string>

Composes self Specification with CreditCardSpecification negation:

Checks if string is not valid credit card number.

static
NotCreditCard<T>(Expression<Func<T, string>>) IComplexSpecification<T>

Creates CreditCardSpecification negation for candidate property:

Checks if string is not valid credit card number.

static
NotCreditCard<T>(ICompositeSpecification<T>, Expression<Func<T, string>>) IComplexSpecification<T>

Composes self Specification with CreditCardSpecification negation for candidate property:

Checks if string is not valid credit card number.

static
NotEmail() IComplexSpecification<string>

Creates EmailSpecification negation:

Checks if string is not valid email address.

static
NotEmail(ICompositeSpecification<string>) IComplexSpecification<string>

Composes self Specification with EmailSpecification negation:

Checks if string is not valid email address.

static
NotEmail<T>(Expression<Func<T, string>>) IComplexSpecification<T>

Creates EmailSpecification negation for candidate property:

Checks if string is not valid email address.

static
NotEmail<T>(ICompositeSpecification<T>, Expression<Func<T, string>>) IComplexSpecification<T>

Composes self Specification with EmailSpecification negation for candidate property:

Checks if string is not valid email address.

static
NotEmpty<T, TProperty>(Expression<Func<T, TProperty>>) IComplexSpecification<T>

Creates EmptySpecification<T> negation for candidate property:

Checks if candidate property is not empty.

static
NotEmpty<T, TProperty>(ICompositeSpecification<T>, Expression<Func<T, TProperty>>) IComplexSpecification<T>

Composes self Specification with EmptySpecification<T> negation for candidate property:

Checks if candidate property is not empty.

static
NotEmpty<T>() IComplexSpecification<T>

Creates EmptySpecification<T> negation:

Checks if candidate is not empty.

static
NotEmpty<T>(ICompositeSpecification<T>) IComplexSpecification<T>

Composes self Specification with EmptySpecification<T> negation:

Checks if candidate is not empty.

static
NotEqual<T, TProperty>(Expression<Func<T, TProperty>>, TProperty, IEqualityComparer<TProperty>) IComplexSpecification<T>

Creates EqualSpecification<T> negation for candidate property:

Checks if candidate object is not equal to expected object.

static
NotEqual<T, TProperty>(ICompositeSpecification<T>, Expression<Func<T, TProperty>>, TProperty, IEqualityComparer<TProperty>) IComplexSpecification<T>

Composes self Specification with EqualSpecification<T> negation for candidate property:

Checks if candidate property is not equal to expected object.

static
NotEqual<T>(ICompositeSpecification<T>, T, IEqualityComparer<T>) IComplexSpecification<T>

Composes self Specification with EqualSpecification<T> negation:

Checks if candidate object is not equal to expected object.

static
NotEqual<T>(T, IEqualityComparer<T>) IComplexSpecification<T>

Creates EqualSpecification<T> negation:

Checks if candidate object is not equal to expected object.

static
NotExclusiveBetween<T, TProperty>(Expression<Func<T, TProperty>>, TProperty, TProperty, IComparer<TProperty>) IComplexSpecification<T>

Creates ExclusiveBetweenSpecification<T> negation for candidate property:

Checks if candidate property is not between (exclusive) min and max value.

static
NotExclusiveBetween<T, TProperty>(ICompositeSpecification<T>, Expression<Func<T, TProperty>>, TProperty, TProperty, IComparer<TProperty>) IComplexSpecification<T>

Composes self Specification with ExclusiveBetweenSpecification<T> negation for candidate property:

Checks if candidate property is not between (exclusive) min and max value.

static
NotExclusiveBetween<T>(ICompositeSpecification<T>, T, T, IComparer<T>) IComplexSpecification<T>

Composes self Specification with ExclusiveBetweenSpecification<T> negation:

Checks if candidate object is not between (exclusive) min and max value.

static
NotExclusiveBetween<T>(T, T, IComparer<T>) IComplexSpecification<T>

Creates ExclusiveBetweenSpecification<T>negation :

Checks if candidate object is not between (exclusive) min and max value.

static
NotGreaterThan<T, TProperty>(Expression<Func<T, TProperty>>, TProperty, IComparer<TProperty>) IComplexSpecification<T>

Creates GreaterThanSpecification<T> negation for candidate property:

Checks if candidate property is not greater than (lower than or equal to) expected value.

static
NotGreaterThan<T, TProperty>(ICompositeSpecification<T>, Expression<Func<T, TProperty>>, TProperty, IComparer<TProperty>) IComplexSpecification<T>

Composes self Specification with GreaterThanSpecification<T> negation for candidate property:

Checks if candidate property is not greater than (lower than or equal to) expected value.

static
NotGreaterThan<T>(ICompositeSpecification<T>, T, IComparer<T>) IComplexSpecification<T>

Composes self Specification with GreaterThanSpecification<T> negation:

Checks if candidate object is not greater than (lower than or equal to) expected value.

static
NotGreaterThan<T>(T, IComparer<T>) IComplexSpecification<T>

Creates GreaterThanSpecification<T> negation:

Checks if candidate object is not greater than (lower than or equal to) expected value.

static
NotGreaterThanOrEqual<T, TProperty>(Expression<Func<T, TProperty>>, TProperty, IComparer<TProperty>) IComplexSpecification<T>

Creates GreaterThanOrEqualSpecification<T> negation for candidate property:

Checks if candidate property is not greater than or equal to (lower than) expected value.

static
NotGreaterThanOrEqual<T, TProperty>(ICompositeSpecification<T>, Expression<Func<T, TProperty>>, TProperty, IComparer<TProperty>) IComplexSpecification<T>

Composes self Specification with GreaterThanOrEqualSpecification<T> negation for candidate property:

Checks if candidate property is not greater than or equal to (lower than) expected value.

static
NotGreaterThanOrEqual<T>(ICompositeSpecification<T>, T, IComparer<T>) IComplexSpecification<T>

Composes self Specification with GreaterThanOrEqualSpecification<T> negation:

Checks if candidate object is not greater than or equal to (lower than) expected value.

static
NotGreaterThanOrEqual<T>(T, IComparer<T>) IComplexSpecification<T>

Creates GreaterThanOrEqualSpecification<T> negation:

Checks if candidate object is not greater than or equal to (lower than) expected value.

static
NotInclusiveBetween<T, TProperty>(Expression<Func<T, TProperty>>, TProperty, TProperty, IComparer<TProperty>) IComplexSpecification<T>

Creates InclusiveBetweenSpecification<T> negation for candidate property:

Checks if candidate property is not between (inclusive) min and max value.

static
NotInclusiveBetween<T, TProperty>(ICompositeSpecification<T>, Expression<Func<T, TProperty>>, TProperty, TProperty, IComparer<TProperty>) IComplexSpecification<T>

Composes self Specification with InclusiveBetweenSpecification<T> negation for candidate property:

Checks if candidate property is not between (inclusive) min and max value.

static
NotInclusiveBetween<T>(ICompositeSpecification<T>, T, T, IComparer<T>) IComplexSpecification<T>

Composes self Specification with InclusiveBetweenSpecification<T> negation:

Checks if candidate object is not between (inclusive) min and max value.

static
NotInclusiveBetween<T>(T, T, IComparer<T>) IComplexSpecification<T>

Creates InclusiveBetweenSpecification<T>negation :

Checks if candidate object is not between (Inclusive) min and max value.

static
NotLength<T, TProperty>(Expression<Func<T, TProperty>>, int) IComplexSpecification<T>

Creates LengthSpecification<T> negation for candidate property:

Checks if length of candidate property is not equal to specific value.

static
NotLength<T, TProperty>(ICompositeSpecification<T>, Expression<Func<T, TProperty>>, int) IComplexSpecification<T>

Composes self Specification with LengthSpecification<T> negation for candidate property:

Checks if length of candidate property is not equal to specific value.

static
NotLength<T>(ICompositeSpecification<T>, int) IComplexSpecification<T>

Composes self Specification with LengthSpecification<T> negation:

Checks if length of candidate is not equal to specific value.

static
NotLength<T>(int) IComplexSpecification<T>

Creates LengthSpecification<T> negation:

Checks if length of candidate is not equal to specific value.

static
NotLengthBetween<T, TProperty>(Expression<Func<T, TProperty>>, int, int) IComplexSpecification<T>

Creates LengthBetweenSpecification<T> negation for candidate property:

Checks if length of candidate property is not between Min and Max values.

static
NotLengthBetween<T, TProperty>(ICompositeSpecification<T>, Expression<Func<T, TProperty>>, int, int) IComplexSpecification<T>

Composes self Specification with LengthBetweenSpecification<T> negation for candidate property:

Checks if length of candidate property is not between Min and Max values.

static
NotLengthBetween<T>(ICompositeSpecification<T>, int, int) IComplexSpecification<T>

Composes self Specification with LengthBetweenSpecification<T> negation:

Checks if length of candidate is not between Min and Max values.

static
NotLengthBetween<T>(int, int) IComplexSpecification<T>

Creates LengthBetweenSpecification<T> negation:

Checks if length of candidate is not between Min and Max values.

static
NotLessThan<T, TProperty>(Expression<Func<T, TProperty>>, TProperty, IComparer<TProperty>) IComplexSpecification<T>

Creates LessThanSpecification<T> negation for candidate property:

Checks if candidate property is not lower than (greater than or equal to) expected value.

static
NotLessThan<T, TProperty>(ICompositeSpecification<T>, Expression<Func<T, TProperty>>, TProperty, IComparer<TProperty>) IComplexSpecification<T>

Composes self Specification with LessThanSpecification<T> negation for candidate property:

Checks if candidate property is not lower than (greater than or equal to) expected value.

static
NotLessThan<T>(ICompositeSpecification<T>, T, IComparer<T>) IComplexSpecification<T>

Composes self Specification with LessThanSpecification<T> negation:

Checks if candidate object is not lower than (greater than or equal to) expected value.

static
NotLessThan<T>(T, IComparer<T>) IComplexSpecification<T>

Creates LessThanSpecification<T> negation:

Checks if candidate object is not lower than (greater than or equal to) expected value.

static
NotLessThanOrEqual<T, TProperty>(Expression<Func<T, TProperty>>, TProperty, IComparer<TProperty>) IComplexSpecification<T>

Creates LessThanOrEqualSpecification<T> negation for candidate property:

Checks if candidate property is not lower than or equal to (greater than) expected value.

static
NotLessThanOrEqual<T, TProperty>(ICompositeSpecification<T>, Expression<Func<T, TProperty>>, TProperty, IComparer<TProperty>) IComplexSpecification<T>

Composes self Specification with LessThanOrEqualSpecification<T> negation for candidate property:

Checks if candidate property is not lower than or equal to (greater than) expected value.

static
NotLessThanOrEqual<T>(ICompositeSpecification<T>, T, IComparer<T>) IComplexSpecification<T>

Composes self Specification with LessThanOrEqualSpecification<T> negation:

Checks if candidate object is not lower than or equal to (greater than) expected value.

static
NotLessThanOrEqual<T>(T, IComparer<T>) IComplexSpecification<T>

Creates LessThanOrEqualSpecification<T> negation:

Checks if candidate object is not lower than or equal to (greater than) expected value.

static
NotMatch(ICompositeSpecification<string>, string, RegexOptions) IComplexSpecification<string>

Composes self Specification with MatchSpecification negation:

Checks if string candidate not match a given Regex pattern.

static
NotMatch(string, RegexOptions) IComplexSpecification<string>

Creates MatchSpecification negation:

Checks if string candidate not match a given Regex pattern.

static
NotMatch<T>(Expression<Func<T, string>>, string, RegexOptions) IComplexSpecification<T>

Creates MatchSpecification negation for candidate property:

Checks if string candidate property not match a given Regex pattern.

static
NotMatch<T>(ICompositeSpecification<T>, Expression<Func<T, string>>, string, RegexOptions) IComplexSpecification<T>

Composes self Specification with MatchSpecification negation for candidate property:

Checks if string candidate property not match a given Regex pattern.

static
NotMaxLength<T, TProperty>(Expression<Func<T, TProperty>>, int) IComplexSpecification<T>

Creates MaxLengthSpecification<T> negation for candidate property:

Checks if length of candidate property is not lower than or equal to (is greater than) Max value.

static
NotMaxLength<T, TProperty>(ICompositeSpecification<T>, Expression<Func<T, TProperty>>, int) IComplexSpecification<T>

Composes self Specification with MaxLengthSpecification<T> negation for candidate property:

Checks if length of candidate property is not lower than or equal to (is greater than) Max value.

static
NotMaxLength<T>(ICompositeSpecification<T>, int) IComplexSpecification<T>

Composes self Specification with MinLengthSpecification<T> negation:

Checks if length of candidate is not lower than or equal to (is greater than) Max value.

static
NotMaxLength<T>(int) IComplexSpecification<T>

Creates MinLengthSpecification<T> negation:

Checks if length of candidate is not lower than or equal to (is greater than) Max value.

static
NotMinLength<T, TProperty>(Expression<Func<T, TProperty>>, int) IComplexSpecification<T>

Creates MinLengthSpecification<T> negation for candidate property:

Checks if length of candidate property is not greater than or equal to (is less than) Min value.

static
NotMinLength<T, TProperty>(ICompositeSpecification<T>, Expression<Func<T, TProperty>>, int) IComplexSpecification<T>

Composes self Specification with MinLengthSpecification<T> negation for candidate property:

Checks if length of candidate property is not greater than or equal to (is less than) Min value.

static
NotMinLength<T>(ICompositeSpecification<T>, int) IComplexSpecification<T>

Composes self Specification with MinLengthSpecification<T> negation:

Checks if length of candidate is not greater than or equal to (is less than) Min value.

static
NotMinLength<T>(int) IComplexSpecification<T>

Creates MinLengthSpecification<T> negation:

Checks if length of candidate is not greater than or equal to (is less than) Min value.

static
NotNull<T, TProperty>(Expression<Func<T, TProperty>>) IComplexSpecification<T>

Creates NullSpecification<T> negation for candidate property:

Checks if candidate property is not null.

static
NotNull<T, TProperty>(ICompositeSpecification<T>, Expression<Func<T, TProperty>>) IComplexSpecification<T>

Composes self Specification with NullSpecification<T> negation for candidate property:

Checks if candidate property is not null.

static
NotNull<T>() IComplexSpecification<T>

Creates NullSpecification<T> negation:

Checks if candidate is not null.

static
NotNull<T>(ICompositeSpecification<T>) IComplexSpecification<T>

Composes self Specification with NullSpecification<T> negation:

Checks if candidate is not null.

static
Null<T, TProperty>(Expression<Func<T, TProperty>>) IComplexSpecification<T>

Creates NullSpecification<T> for candidate property:

Checks if candidate property is null.

static
Null<T, TProperty>(ICompositeSpecification<T>, Expression<Func<T, TProperty>>) IComplexSpecification<T>

Composes self Specification with NullSpecification<T> for candidate property:

Checks if candidate property is null.

static
Null<T>() IComplexSpecification<T>

Creates NullSpecification<T>:

Checks if candidate is null.

static
Null<T>(ICompositeSpecification<T>) IComplexSpecification<T>

Composes self Specification with NullSpecification<T>:

Checks if candidate is null.

static
Or<T, TProperty>(Expression<Func<T, TProperty>>, ISpecification<TProperty>, ISpecification<TProperty>) IComplexSpecification<T>

Creates OrSpecification<T> for candidate property:

Join property Specifications by logical OR.

static
Or<T>(ISpecification<T>, ISpecification<T>) IComplexSpecification<T>

Creates OrSpecification<T>:

Join Specifications by logical OR.

static
OrNot<T, TProperty>(Expression<Func<T, TProperty>>, ISpecification<TProperty>, ISpecification<TProperty>) IComplexSpecification<T>

Creates OrSpecification<T> for candidate property:

Join property Specifications by logical OR. Second Specifications is negated.

static
OrNot<T>(ISpecification<T>, ISpecification<T>) IComplexSpecification<T>

Creates OrSpecification<T>:

Join Specifications by logical OR. Second Specifications is negated.

static
True() IComplexSpecification<bool>

Creates TrueSpecification:

Checks if candidate is True.

static
True(ICompositeSpecification<bool>) IComplexSpecification<bool>

Composes self Specification with TrueSpecification:

Checks if candidate is True.

static
True<T>(Expression<Func<T, bool>>) IComplexSpecification<T>

Creates TrueSpecification for candidate property:

Checks if candidate property is True.

static
True<T>(ICompositeSpecification<T>, Expression<Func<T, bool>>) IComplexSpecification<T>

Composes self Specification with TrueSpecification for candidate property:

Checks if candidate property is True.

static
GitHub