False

Feature Is supported
Null safe
Validation
EF Core
EF 6

Validation result

Error

"Value is True".

"Value is False" - for negation.

Info

Checks if candidate is False.

Usage

var spec = Specification.False();

spec.IsSatisfiedBy(true); // false
spec.IsSatisfiedBy(false);  // true

As property

var customerSpec = Specification.False<Customer>(c => c.IsActive);

customerSpec.IsSatisfiedBy(new Customer { IsActive = true }); // false
customerSpec.IsSatisfiedBy(new Customer { IsActive = false }); // true
GitHub