Couchbase .NET SDK __CB_SDK_VERSION__

Show / Hide Table of Contents

Class LookupInSpecBuilderExtensions

Extensions for LookupInSpecBuilder.

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

Methods

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.

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.

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.

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