Class LookupInSpecBuilderExtensions
Extensions for LookupInSpecBuilder.
Inherited Members
Namespace: Couchbase.KeyValue
Assembly: Couchbase.NetClient.dll
Syntax
public static class LookupInSpecBuilderExtensions
Methods
| Edit this page View SourceCount<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 |
Type Parameters
Name | Description |
---|---|
TDocument | Type of the parent document. |
TContent | Type of the subdocument. |
Exceptions
Type | Condition |
---|---|
ArgumentNullException |
|
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 |
Type Parameters
Name | Description |
---|---|
TDocument | Type of the parent document. |
TContent | Type of the subdocument. |
Exceptions
Type | Condition |
---|---|
ArgumentNullException |
|
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 |
Type Parameters
Name | Description |
---|---|
TDocument | Type of the parent document. |
TContent | Type of the subdocument. |
Exceptions
Type | Condition |
---|---|
ArgumentNullException |
|