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

The return type of the OQL expression.


The OQL expression to be executed, containing zero or more parameter references.
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.


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.


Namespace: TechTalk.Genome

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


Editions: Professional, Evaluation, Express

See Also

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