public static class QueryExtensionsReference documentation and code samples for the Google Cloud Datastore v1 API class QueryExtensions.
Extension methods around queries.
Namespace
Google.Cloud.Datastore.V1Assembly
Google.Cloud.Datastore.V1.dll
Methods
Add(MapField<string, GqlQueryParameter>, string, Value)
public static void Add(this MapField<string, GqlQueryParameter> parameters, string parameterName, Value value)Adds a GQL parameter with the specified value.
| Parameters | |
|---|---|
| Name | Description | 
parameters | 
        MapFieldstringGqlQueryParameterThe mapping of GQL query parameters to add to. Must not be null.  | 
      
parameterName | 
        stringThe name of the parameter. Must not be null.  | 
      
value | 
        ValueThe value to add. May be null, which indicates a value with NullValue set.  | 
      
Add(RepeatedField<GqlQueryParameter>, Value)
public static void Add(this RepeatedField<GqlQueryParameter> parameters, Value value)Adds a GQL parameter with the specified value.
| Parameters | |
|---|---|
| Name | Description | 
parameters | 
        RepeatedFieldGqlQueryParameterThe list of positional GQL query parameters to add to. Must not be null.  | 
      
value | 
        ValueThe value to add. May be null, which indicates a value with NullValue set.  | 
      
Add(RepeatedField<Projection>, string)
public static void Add(this RepeatedField<Projection> projections, string propertyName)Adds a projection with the given property name to the repeated field. This enables projections to be specified in a query with a collection initializer in C# 6 and later.
| Parameters | |
|---|---|
| Name | Description | 
projections | 
        RepeatedFieldProjectionThe collection of projections to add to. Must not be null.  | 
      
propertyName | 
        stringThe property to project. Must not be null.  | 
      
Add(RepeatedField<PropertyOrder>, string)
public static void Add(this RepeatedField<PropertyOrder> orderings, string propertyName)Adds an ascending ordering by property name. The ordering is implicitly ascending.
| Parameters | |
|---|---|
| Name | Description | 
orderings | 
        RepeatedFieldPropertyOrderThe ordering field to add the ordering to. Must not be null.  | 
      
propertyName | 
        stringThe name of the property to order by. Must not be null.  | 
      
Add(RepeatedField<PropertyOrder>, string, Direction)
public static void Add(this RepeatedField<PropertyOrder> orderings, string propertyName, PropertyOrder.Types.Direction direction)Adds an ordering by property name and direction.
| Parameters | |
|---|---|
| Name | Description | 
orderings | 
        RepeatedFieldPropertyOrderThe ordering field to add the ordering to. Must not be null.  | 
      
propertyName | 
        stringThe name of the property to order by. Must not be null.  | 
      
direction | 
        PropertyOrderTypesDirectionThe direction to order by. Must be   | 
      
Add(RepeatedField<PropertyReference>, string)
public static void Add(this RepeatedField<PropertyReference> propertyReferences, string propertyName)Adds an entry to the list of property references. This enables repeated property reference fields (such as DistinctOn to be specified in a query with a collection initializer in C# 6 and later.
| Parameters | |
|---|---|
| Name | Description | 
propertyReferences | 
        RepeatedFieldPropertyReferenceThe collection of property references to add to. Must not be null.  | 
      
propertyName | 
        stringThe property to project. Must not be null.  |