Reference > Configuration > Runtime
Query Expressions
core concept: query expressions
Configure a query expression factory to return instances of different sub-types for a specific QueryExpression type.
Generically specify a query type
Syntax
ForQueryType<T>().Use<T>()
Alternate Syntax
ForSelect().Use<T>()ForInsert().Use<T>()ForUpdate().Use<T>()ForDelete().Use<T>()
Arguments
- T
- – Specify a the type of query expression implementation to use for a specific query expression type.
syntax examples
Use a factory
Syntax
ForQueryType<T>().Use({factory})
Alternate Syntax
ForSelect().Use({factory})ForInsert().Use({factory})ForUpdate().Use({factory})ForDelete().Use({factory})
Arguments
- T
- – The generic parameter that specifies the type of `QueryExpression`. `T` must have a public parameterless constructor.
- factory
- – A factory responsible for creating query expressions of type `T`.
syntax examples
