Returns an instance of a query provider.
An instance of T.
The method returns an instance of a query provider T. All queries executed using the query provider are evaluated in the current data domain. Genome does not guarantee to return singleton instances, so managing state in the query provider classes is not recommended.
The query provider returned by this method returns unpinned results. Use the !:QueryProvider<T>(Context) overload when using query providers that return context-bound objects and sets.
| Exception Type | Condition |
|---|---|
| SchemaException | The type T is not mapped with <QueryProvider> element . |
Namespace: TechTalk.Genome
Assembly: TechTalk.Genome (in TechTalk.Genome.dll)
Version: 4.2.4.4
Editions: Professional, Evaluation, Express
DataDomain Class | TechTalk.Genome Namespace | DataDomain.QueryProvider<T> Overload List | !:QueryProvider<T>(Context) | <QueryProvider> Element | OqlReference.Chapter21