Table of Contents

Class SpecificationBase<TProperty>

Namespace
The.Search
Assembly
Instagile.dll
public abstract class SpecificationBase<TProperty>

Type Parameters

TProperty
Inheritance
SpecificationBase<TProperty>
Derived
Inherited Members

Constructors

SpecificationBase()

public SpecificationBase()

Methods

Add(Expression<Func<TProperty, bool>>, Expression<Func<TProperty, bool>>)

protected void Add(Expression<Func<TProperty, bool>> predicate, Expression<Func<TProperty, bool>> inversePredicate)

Parameters

predicate Expression<Func<TProperty, bool>>
inversePredicate Expression<Func<TProperty, bool>>

Add(ICriteriaTree<TProperty>)

protected void Add(ICriteriaTree<TProperty> tree)

Parameters

tree ICriteriaTree<TProperty>

AddConjoin<TSubclass>(TSubclass)

protected TSubclass AddConjoin<TSubclass>(TSubclass existingSpec) where TSubclass : SpecificationBase<TProperty>

Parameters

existingSpec TSubclass

Returns

TSubclass

Type Parameters

TSubclass

AddDisjoin<TSubclass>(TSubclass)

protected TSubclass AddDisjoin<TSubclass>(TSubclass existingSpec) where TSubclass : SpecificationBase<TProperty>

Parameters

existingSpec TSubclass

Returns

TSubclass

Type Parameters

TSubclass

AddNegation<TSubclass>(TSubclass)

protected TSubclass AddNegation<TSubclass>(TSubclass existingSpec) where TSubclass : SpecificationBase<TProperty>

Parameters

existingSpec TSubclass

Returns

TSubclass

Type Parameters

TSubclass

AddOrReplaceSingle(Expression<Func<TProperty, bool>>, Expression<Func<TProperty, bool>>)

protected void AddOrReplaceSingle(Expression<Func<TProperty, bool>> predicate, Expression<Func<TProperty, bool>> inversePredicate)

Parameters

predicate Expression<Func<TProperty, bool>>
inversePredicate Expression<Func<TProperty, bool>>

Equals(object?)

Determines whether the specified object is equal to the current object.

[Obsolete("This will not compare values in a query", true)]
public override bool Equals(object? _)

Parameters

_ object

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

GetConjointCriteria()

protected virtual ICriteriaTree<TProperty> GetConjointCriteria()

Returns

ICriteriaTree<TProperty>

GetDisjointCriteria()

protected ICriteriaTree<TProperty> GetDisjointCriteria()

Returns

ICriteriaTree<TProperty>

Specify(IEntityQuery<TProperty>)

protected IEntityQuery<TProperty> Specify(IEntityQuery<TProperty> collection)

Parameters

collection IEntityQuery<TProperty>

Returns

IEntityQuery<TProperty>