Click or drag to resize

SpecificationT Class

This class contains the basic functionality for any specification-class.
Inheritance Hierarchy

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

Type Parameters

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

The SpecificationT type exposes the following members.

Constructors
  NameDescription
Protected methodSpecificationT
Initializes a new instance of the SpecificationT class.
Top
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 records that must be retrieved using this specification.
Public propertySortRules
Gets the sorting rules that are specified.
Top
Methods
  NameDescription
Public methodAnd
Creates an 'And' specification that can be used to combine two specifications and compare them using the '&&' operation.
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodHandleIncludePathUpdated
Handles the occurrence of a changed include path.
Protected methodHandleMaximumResultsUpdated
Handles the occurrence of a changed maximum for the number of records that must be retrieved.
Protected methodHandleOrderByRulesUpdated
Handles the occurrence of a changed set of sorting rules.
Public methodInclude
Sets the include path that must be considered when using the specification.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodOr
Creates an 'Or' specification that can be used to combine two specifications and compare them using the '||' operation.
Public methodOrderBy(SortSpecificationsT)
Specifies the way the sequence must be sorted.
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 methodToString
Returns a string that represents the current object.
(Inherited from Object.)
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.
Protected methodVisitCore
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 sort rules have been updated.
Top
See Also