CouchbaseBucket.Query<T> Method (IQueryRequest)Couchbase .NET SDK 2.0
Executes a N1QL statement or prepared statement via a IQueryRequest against the Couchbase Cluster.

Namespace: Couchbase
Assembly: Couchbase.NetClient (in Couchbase.NetClient.dll) Version: 2.0.0.0 (2.0.0.0)
Syntax
public IQueryResult<T> Query<T>(
	IQueryRequest queryRequest
)

Parameters

queryRequest
Type: Couchbase.N1QL.IQueryRequest
An IQueryRequest object that contains a statement or a prepared statement and the appropriate properties.
Type Parameters
T
The Type to deserialze the results to. The dynamic Type works well.

Return Value

Type: IQueryResult<T>
An instance of an object that implements the IQueryResult<T> interface; the results of the query.

Implements

IBucket.Query<T>(IQueryRequest)
See Also