Couchbase .NET SDK __CB_SDK_VERSION__

Show / Hide Table of Contents

Class ScopeExtensions

Inheritance
object
ScopeExtensions
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Couchbase
Assembly: Couchbase.NetClient.dll
Syntax
public static class ScopeExtensions

Methods

View Source

AnalyticsQueryAsync<T>(IScope, string, Action<AnalyticsOptions>)

Executes a analytics query on the server.

Declaration
public static Task<IAnalyticsResult<T>> AnalyticsQueryAsync<T>(this IScope scope, string statement, Action<AnalyticsOptions> configureOptions)
Parameters
Type Name Description
IScope scope

The calling scope.

string statement

The statement to execute.

Action<AnalyticsOptions> configureOptions
Returns
Type Description
Task<IAnalyticsResult<T>>

A Task that can be awaited for the results of the query.

Type Parameters
Name Description
T

The type of the result.

View Source

QueryAsync<T>(IScope, string)

Executes a N1QL query on the server.

Declaration
public static Task<IQueryResult<T>> QueryAsync<T>(this IScope scope, string statement)
Parameters
Type Name Description
IScope scope

The calling scope.

string statement

The statement to execute.

Returns
Type Description
Task<IQueryResult<T>>

A Task that can be awaited for the results of the query.

Type Parameters
Name Description
T

The type of the result.

View Source

QueryAsync<T>(IScope, string, Action<QueryOptions>)

Executes a N1QL query on the server.

Declaration
public static Task<IQueryResult<T>> QueryAsync<T>(this IScope scope, string statement, Action<QueryOptions> configureOptions)
Parameters
Type Name Description
IScope scope

The calling scope.

string statement

The statement to execute.

Action<QueryOptions> configureOptions

Any options as a lambda.

Returns
Type Description
Task<IQueryResult<T>>

A Task that can be awaited for the results of the query.

Type Parameters
Name Description
T

The type of the result.

  • View Source
In this article
Back to top Copyright © 2020 Couchbase, Inc. All rights reserved.