Suoranta.EnterpriseLib.Web - Developer API

EntityQuery<(Of <(<'TEntity, TOrderKey>)>)> Class

Base class for classes that model entity search forms in accordance to app-specific filtration rules. Note that it is needless to have individual service class for individual search forms or entity classes. One service class should serve numerous forms. Asynchronous and paged query operations

Namespace:  Suoranta.EnterpriseLib.Linq
Assembly:  Suoranta.EnterpriseLib (in Suoranta.EnterpriseLib.dll)

Syntax


[SerializableAttribute]
public abstract class EntityQuery<TEntity, TOrderKey>

Type Parameters

TEntity
Type of entities that are queried
TOrderKey
Only relevant when custom primary ordering of results is used (supply type of key used in primary ordering). Otherwise arbitrary.

Remarks


This class is designed to be abstract but fully implements instance methods that are invoked on instances of derived types. This is made possible by inspection of actual runtime type and its instance properties.

Notes:
  1. In basic scenarios, derived classes do not require additional methods. Only properties representing Filters in accordance to business needs would be added. However, additional logic can be used to supplement functionality within this base class.
  2. Avoid defining "subsubclasses" for subclasses of this class. Classes low in the inheritance hierarchy will not access properties derived from preceding base classes regardless of properties' access modifiers.

Inheritance Hierarchy


Object
  Suoranta.EnterpriseLib.Linq..::..EntityQuery<(Of <(<'TEntity, TOrderKey>)>)>