Class ScopeExtensions
Inheritance
System.Object
ScopeExtensions
Namespace: Couchbase
Assembly: Couchbase.NetClient.dll
Syntax
public static class ScopeExtensions : object
Methods
| Improve this Doc View SourceAnalyticsQueryAsync<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. |
System.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. |
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. |
System.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. |
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. |
System.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. |