TechTalk Genome v4.2

DataDomain.QueryProvider<T> Method ()

Returns an instance of a query provider.

public T QueryProvider<T>();

Type Parameters

T
A type specifying an interface or an abstract class.

Return Value

An instance of T.

Implements

IDataDomain.QueryProvider

Remarks

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.

Exceptions

Exception TypeCondition
SchemaException The type T is not mapped with <QueryProvider> element .

Requirements

Namespace: TechTalk.Genome

Assembly: TechTalk.Genome (in TechTalk.Genome.dll)

Version: 4.2.4.4

Editions: Professional, Evaluation, Express

See Also

DataDomain Class | TechTalk.Genome Namespace | DataDomain.QueryProvider<T> Overload List | !:QueryProvider<T>(Context) | <QueryProvider> Element | OqlReference.Chapter21