Class LookupInSpecBuilderExtensions
Extensions for LookupInSpecBuilder.
Inheritance
Namespace: Couchbase.KeyValue
Assembly: Couchbase.NetClient.dll
Syntax
public static class LookupInSpecBuilderExtensions : object
Methods
| Improve this Doc 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. |
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. |
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. |