Ejemplo n.º 1
0
 /// <summary>
 /// Creates a sentinel value to indicate the removal of the given values with an array.
 /// </summary>
 /// <param name="values">The values to include in the resulting sentinel value. Must not be null.</param>
 /// <returns>A sentinel value representing an array removal.</returns>
 public static object ArrayRemove(params object[] values) =>
 SentinelValue.ForArrayValue(SentinelKind.ArrayRemove, values);
Ejemplo n.º 2
0
 /// <summary>
 /// Creates a sentinel value to indicate the removal of the given values with an array. This over
 /// </summary>
 /// <param name="database">Database to check for custom serialization.</param>
 /// <param name="values">The values to include in the resulting sentinel value. Must not be null.</param>
 /// <returns>A sentinel value representing an array removal.</returns>
 public static object ArrayRemove(FirestoreDb database, params object[] values) =>
 SentinelValue.ForArrayValue(GaxPreconditions.CheckNotNull(database, nameof(database)).SerializationContext, SentinelKind.ArrayRemove, values);
Ejemplo n.º 3
0
 /// <summary>
 /// Creates a sentinel value to indicate the union of the given values with an array.
 /// </summary>
 /// <param name="values">The values to include in the resulting sentinel value. Must not be null.</param>
 /// <returns>A sentinel value representing an array union.</returns>
 public static object ArrayUnion(params object[] values) =>
 SentinelValue.ForArrayValue(SentinelKind.ArrayUnion, values);
Ejemplo n.º 4
0
 /// <summary>
 /// Creates a sentinel value to indicate the removal of the given values with an array.
 /// This overload assumes that any custom serializers are configured via attributes. Use the overload
 /// accepting a <see cref="FirestoreDb" /> if you need to use database-registered custom serializers.
 /// </summary>
 /// <param name="values">The values to include in the resulting sentinel value. Must not be null.</param>
 /// <returns>A sentinel value representing an array removal.</returns>
 public static object ArrayRemove(params object[] values) =>
 SentinelValue.ForArrayValue(SerializationContext.Default, SentinelKind.ArrayRemove, values);