Click or drag to resize

ISpecificationT Interface

This interface describes the public API of the classes that make up the specification subsystem that is implemented using the Specification Pattern.

Namespace:  Enkoni.Framework
Assembly:  Enkoni.Framework.Specifications (in Enkoni.Framework.Specifications.dll) Version: 1.3.0.1
Syntax
public interface ISpecification<T>

Type Parameters

T
The type of object that is ultimately selected by the specification.

The ISpecificationT type exposes the following members.

Properties
  NameDescription
Public propertyIncludePaths
Gets the dot-separated lists of related objects to return in the query results.
Public propertyMaximumResults
Gets the maximum number of results that must be returned by the specification.
Public propertySortRules
Gets the sorting rules.
Top
Methods
  NameDescription
Public methodAnd
Creates an 'And' specification that can be used to combine two specifications and compare them using the '&&' operation.
Public methodInclude
Sets the include path that must be considered when using the specification.
Public methodOr
Creates an 'Or' specification that can be used to combine two specifications and compare them using the '||' operation.
Public methodOrderByTKey(ExpressionFuncT, TKey)
Specifies the way the sequence must be sorted. It used a default sort order of ascending.
Public methodOrderByTKey(ExpressionFuncT, TKey, SortOrder)
Specifies the way the sequence must be sorted.
Public methodOrderByDescendingTKey
Specifies the way the sequence must be sorted. It used a default sort order of descending.
Public methodSetMaximumResults
Sets the maximum number of records that must be retrieved using the specification.
Public methodVisit
Visits the specification and lets visitor convert the contents of the specification into an expression that can be used to perform the actual filtering/selection.
Top
Events
  NameDescription
Public eventIncludePathUpdated
Occurs when the include path has changed.
Public eventMaximumResultsUpdated
Occurs when the maximum number of records has changed.
Public eventSortRulesUpdated
Occurs when the sorting rules have changed.
Top
See Also