public void Spatial(SpatialDynamicField dynamicField, SpatialCriteria criteria) { AppendOperatorIfNeeded(WhereTokens); NegateIfNeeded(null); WhereTokens.AddLast(criteria.ToQueryToken(dynamicField.ToField(EnsureValidFieldName), AddQueryParameter)); }
/// <inheritdoc /> public void Spatial(DynamicSpatialField dynamicField, SpatialCriteria criteria) { var tokens = GetCurrentWhereTokens(); AppendOperatorIfNeeded(tokens); NegateIfNeeded(tokens, null); tokens.AddLast(criteria.ToQueryToken(dynamicField.ToField(EnsureValidFieldName), AddQueryParameter)); }
/// <inheritdoc /> public void Spatial(string fieldName, SpatialCriteria criteria) { fieldName = EnsureValidFieldName(fieldName, isNestedPath: false); AppendOperatorIfNeeded(WhereTokens); NegateIfNeeded(fieldName); WhereTokens.AddLast(criteria.ToQueryToken(fieldName, AddQueryParameter)); }