Class OrSpecification<TEntity>
Generic Or specification.
Inheritance
System.Object
    Specification<TEntity>
    CompositeSpecification<TEntity>
    OrSpecification<TEntity>
  Implements
ISpecification<TEntity>
  Inherited Members
      System.Object.Equals(System.Object)
    
    
      System.Object.Equals(System.Object, System.Object)
    
    
      System.Object.GetHashCode()
    
    
      System.Object.GetType()
    
    
      System.Object.MemberwiseClone()
    
    
      System.Object.ReferenceEquals(System.Object, System.Object)
    
    
      System.Object.ToString()
    
  Namespace: JK.Common.Patterns.Specification
Assembly: JK.Common.dll
Syntax
public class OrSpecification<TEntity> : CompositeSpecification<TEntity>, ISpecification<TEntity>
  Type Parameters
| Name | Description | 
|---|---|
| TEntity | The type of the entity.  | 
      
Constructors
| Improve this Doc View SourceOrSpecification(ISpecification<TEntity>, ISpecification<TEntity>)
Initializes a new instance of the OrSpecification class.
Declaration
public OrSpecification(ISpecification<TEntity> left, ISpecification<TEntity> right)
  Parameters
| Type | Name | Description | 
|---|---|---|
| ISpecification<TEntity> | left | The left entity.  | 
      
| ISpecification<TEntity> | right | The right entity.  | 
      
Methods
| Improve this Doc View SourceIsSatisfiedBy(in TEntity)
Determines whether the specified candidate is satisfied by TEntity.
Declaration
public override bool IsSatisfiedBy(in TEntity candidate)
  Parameters
| Type | Name | Description | 
|---|---|---|
| TEntity | candidate | The candidate.  | 
      
Returns
| Type | Description | 
|---|---|
| System.Boolean | True if is satisfied by the specified candidate; otherwise false.  | 
      
Overrides
JK.Common.Patterns.Specification.Specification<TEntity>.IsSatisfiedBy(TEntity)