Couchbase .NET SDK | 3.7.2
Search Results for

    Show / Hide Table of Contents

    Class LookupInSpecBuilderExtensions

    Extensions for LookupInSpecBuilder.

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

    Methods

    | Edit this page View Source

    Count<TDocument, TContent>(LookupInSpecBuilder<TDocument>, Expression<Func<TDocument, TContent>>)

    Get the number of items in a fragment of type TContent within a document of type TDocument, using a given lambda expression path.

    Declaration
    public static LookupInSpecBuilder<TDocument> Count<TDocument, TContent>(this LookupInSpecBuilder<TDocument> builder, Expression<Func<TDocument, TContent>> path)
    Parameters
    Type Name Description
    LookupInSpecBuilder<TDocument> builder

    LookupInSpecBuilder<TDocument> where the the subdocument lookup is being built.

    Expression<Func<TDocument, TContent>> path

    Lambda expression path that navigates to the subdocument from the parent document.

    Returns
    Type Description
    LookupInSpecBuilder<TDocument>

    The builder for expression chaining.

    Type Parameters
    Name Description
    TDocument

    Type of the parent document.

    TContent

    Type of the subdocument.

    Exceptions
    Type Condition
    ArgumentNullException

    builder or path is null.

    | Edit this page View Source

    Exists<TDocument, TContent>(LookupInSpecBuilder<TDocument>, Expression<Func<TDocument, TContent>>)

    Check for existence of a fragment of type TContent within a document of type TDocument, using a given lambda expression path.

    Declaration
    public static LookupInSpecBuilder<TDocument> Exists<TDocument, TContent>(this LookupInSpecBuilder<TDocument> builder, Expression<Func<TDocument, TContent>> path)
    Parameters
    Type Name Description
    LookupInSpecBuilder<TDocument> builder

    LookupInSpecBuilder<TDocument> where the the subdocument lookup is being built.

    Expression<Func<TDocument, TContent>> path

    Lambda expression path that navigates to the subdocument from the parent document.

    Returns
    Type Description
    LookupInSpecBuilder<TDocument>

    The builder for expression chaining.

    Type Parameters
    Name Description
    TDocument

    Type of the parent document.

    TContent

    Type of the subdocument.

    Exceptions
    Type Condition
    ArgumentNullException

    builder or path is null.

    | Edit this page View Source

    Get<TDocument, TContent>(LookupInSpecBuilder<TDocument>, Expression<Func<TDocument, TContent>>)

    Get a fragment of type TContent from a document of type TDocument, using a given lambda expression path.

    Declaration
    public static LookupInSpecBuilder<TDocument> Get<TDocument, TContent>(this LookupInSpecBuilder<TDocument> builder, Expression<Func<TDocument, TContent>> path)
    Parameters
    Type Name Description
    LookupInSpecBuilder<TDocument> builder

    LookupInSpecBuilder<TDocument> where the the subdocument lookup is being built.

    Expression<Func<TDocument, TContent>> path

    Lambda expression path that navigates to the subdocument from the parent document.

    Returns
    Type Description
    LookupInSpecBuilder<TDocument>

    The builder for expression chaining.

    Type Parameters
    Name Description
    TDocument

    Type of the parent document.

    TContent

    Type of the subdocument.

    Exceptions
    Type Condition
    ArgumentNullException

    builder or path is null.

    • Edit this page
    • View Source
    In this article
    Back to top © 2025 Couchbase, Inc.