Couchbase .NET SDK | 3.3.5
Search Results for

    Show / Hide Table of Contents

    Class ScopeExtensions

    Inheritance
    Object
    ScopeExtensions
    Namespace: Couchbase
    Assembly: Couchbase.NetClient.dll
    Syntax
    public static class ScopeExtensions : object

    Methods

    | Improve this Doc 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.

    | Improve this Doc 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.

    | Improve this Doc 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.

    • Improve this Doc
    • View Source
    In This Article
    Back to top © 2022 Couchbase, Inc.