Table of Contents

Class ExclusiveProjectionBuilder<T>

Namespace
DataStax.AstraDB.DataApi.Core.Query
Assembly
DataStax.AstraDB.DataApi.dll

A builder for exclusive projections.

public class ExclusiveProjectionBuilder<T> : ProjectionBuilderBase<T, ExclusiveProjectionBuilder<T>>, IProjectionBuilder

Type Parameters

T

The type of the document.

Inheritance
ExclusiveProjectionBuilder<T>
Implements
Inherited Members

Methods

Clone()

Creates a copy of this projection builder.

public override IProjectionBuilder Clone()

Returns

IProjectionBuilder

Exclude(string)

Specify a field to exclude from the projection.

public ExclusiveProjectionBuilder<T> Exclude(string fieldName)

Parameters

fieldName string

The name of the field to exclude.

Returns

ExclusiveProjectionBuilder<T>

The projection builder.

Exclude<TField>(Expression<Func<T, TField>>)

Specify a field to exclude from the projection.

public ExclusiveProjectionBuilder<T> Exclude<TField>(Expression<Func<T, TField>> fieldExpression)

Parameters

fieldExpression Expression<Func<T, TField>>

The field to exclude from the projection.

Returns

ExclusiveProjectionBuilder<T>

The projection builder.

Type Parameters

TField

The type of the field to exclude.

IncludeSpecial(string)

Specify a special field to include in the projection.

public ExclusiveProjectionBuilder<T> IncludeSpecial(string fieldName)

Parameters

fieldName string

The name of the field to include.

Returns

ExclusiveProjectionBuilder<T>

The projection builder.

IncludeSpecial<TField>(Expression<Func<T, TField>>)

Specify a special field to include in the projection.

public ExclusiveProjectionBuilder<T> IncludeSpecial<TField>(Expression<Func<T, TField>> fieldExpression)

Parameters

fieldExpression Expression<Func<T, TField>>

Returns

ExclusiveProjectionBuilder<T>

The projection builder.

Type Parameters

TField

Slice(string, int, int)

Specify a field to include in the projection.

public ExclusiveProjectionBuilder<T> Slice(string fieldName, int start, int length = 0)

Parameters

fieldName string

The name of the field to include.

start int
length int

Returns

ExclusiveProjectionBuilder<T>

The projection builder.

Slice<TField>(Expression<Func<T, TField>>, int, int)

Specify a field to include in the projection.

public ExclusiveProjectionBuilder<T> Slice<TField>(Expression<Func<T, TField>> fieldExpression, int start, int length = 0)

Parameters

fieldExpression Expression<Func<T, TField>>

The field to include in the projection.

start int
length int

Returns

ExclusiveProjectionBuilder<T>

The projection builder.

Type Parameters

TField

The type of the field to include.