JK
Search Results for

    Show / Hide Table of Contents

    Class OrSpecification<TEntity>

    Generic Or specification.

    Inheritance
    System.Object
    Specification<TEntity>
    CompositeSpecification<TEntity>
    OrSpecification<TEntity>
    Implements
    ISpecification<TEntity>
    Inherited Members
    CompositeSpecification<TEntity>.Left
    CompositeSpecification<TEntity>.Right
    Specification<TEntity>.And(ISpecification<TEntity>)
    Specification<TEntity>.Not()
    Specification<TEntity>.Or(ISpecification<TEntity>)
    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 Source

    OrSpecification(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 Source

    IsSatisfiedBy(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)

    Implements

    ISpecification<TEntity>

    Extension Methods

    ClassExtensions.IsNull<T>(T)
    ClassExtensions.IsNotNull<T>(T)
    • Improve this Doc
    • View Source
    In This Article
    Back to top Copyright © Jeremy Knight. Generated with DocFX