TechTalk Genome v4.2

DataDomain.Evaluate<T> Method (String, Object[])

Returns the results of evaluating the specified OQL expression with the supplied parameters in this DataDomain.

public T Evaluate<T>(
   string expression,
   params object[] parameters
);

Type Parameters

T
The return type of the OQL expression.

Parameters

expression
The OQL expression to be executed, containing zero or more parameter references.
parameters
An array of objects that should be used as parameter literals in the OQL expression specified by expression.

Return Value

An object of type T, containing the result of evaluating the OQL expression.

Exceptions

Exception TypeCondition
SchemaException Thrown if a class, member or operator used in the OQL expression cannot be succesfully mapped using the DataDomainSchema of this DataDomain.
SqlDomException Thrown if the OQL expression cannot be translated to the target SQL language.

Requirements

Namespace: TechTalk.Genome

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

Version: 4.2.11.59

Editions: Professional, Evaluation, Express

See Also

DataDomain Class | TechTalk.Genome Namespace | DataDomain.Evaluate<T> Overload List | OQL Syntax Guide