Table of Contents

Class AttrExtensions

Namespace
DynaSharp
Assembly
DynaSharp.dll

What a handle can do depending on the type of its attribute.

public static class AttrExtensions
Inheritance
AttrExtensions
Inherited Members

Methods

At<TDocument, TConverter, TValue, TValueConverter>(Attr<TDocument, TConverter>, Attr<TValue, TValueConverter>)

Gets an attribute inside a nested document, by the handle that its document type generates: Order.Attrs.ShipTo.At(Address.Attrs.City) has the path ShipTo.City, and it can go on from there. A handle that names a whole document stays an ordinary attribute, which is why this is a call: Set(Order.Attrs.ShipTo, address) replaces the map.

public static Attr<TValue, TValueConverter> At<TDocument, TConverter, TValue, TValueConverter>(this Attr<TDocument, TConverter> document, Attr<TValue, TValueConverter> attribute) where TDocument : IDynamoDbDocument<TDocument> where TConverter : IDynamoDbConverter<TDocument> where TValueConverter : IDynamoDbConverter<TValue>

Parameters

document Attr<TDocument, TConverter>

The attribute that holds the document.

attribute Attr<TValue, TValueConverter>

The attribute inside the document, a name or a path. Nothing checks that it belongs to TDocument.

Returns

Attr<TValue, TValueConverter>

The attribute at the nested path.

Type Parameters

TDocument

The document. A handle of a scalar has nothing inside, so it does not compile.

TConverter

The converter of the document.

TValue

The type of the inner attribute.

TValueConverter

The converter of the inner attribute.

BeginsWith(Attr<bool, BoolConverter>, string)

Does not compile, because DynamoDB finds nothing with begins_with on a boolean.

[Obsolete("begins_with is for strings and binary values, and DynamoDB answers with no item for this attribute. Compare it with Eq, Gt or Between.", true)]
public static BeginsWith BeginsWith(this Attr<bool, BoolConverter> attribute, string prefix)

Parameters

attribute Attr<bool, BoolConverter>

The attribute.

prefix string

The prefix.

Returns

BeginsWith

The condition.

BeginsWith(Attr<bool, NullableHandleConverter<bool, BoolConverter>>, string)

Does not compile, because DynamoDB finds nothing with begins_with on a boolean.

[Obsolete("begins_with is for strings and binary values, and DynamoDB answers with no item for this attribute. Compare it with Eq, Gt or Between.", true)]
public static BeginsWith BeginsWith(this Attr<bool, NullableHandleConverter<bool, BoolConverter>> attribute, string prefix)

Parameters

attribute Attr<bool, NullableHandleConverter<bool, BoolConverter>>

The attribute.

prefix string

The prefix.

Returns

BeginsWith

The condition.

BeginsWith(Attr<byte[], BinaryConverter>, ReadOnlyMemory<byte>)

Checks with begins_with on a binary attribute, which compares bytes.

public static BeginsWith BeginsWith(this Attr<byte[], BinaryConverter> attribute, ReadOnlyMemory<byte> prefix)

Parameters

attribute Attr<byte[], BinaryConverter>

The attribute.

prefix ReadOnlyMemory<byte>

The prefix bytes. The condition keeps a reference to this memory, so do not change it before the command is sent.

Returns

BeginsWith

The condition.

BeginsWith(Attr<byte[], BinaryConverter>, string)

Does not compile, because a string prefix never matches a binary value.

[Obsolete("DynamoDB compares a binary attribute with a binary prefix, and answers with no item for a string. Pass the bytes.", true)]
public static BeginsWith BeginsWith(this Attr<byte[], BinaryConverter> attribute, string prefix)

Parameters

attribute Attr<byte[], BinaryConverter>

The attribute.

prefix string

The prefix.

Returns

BeginsWith

The condition.

BeginsWith(Attr<byte[], NullableReferenceHandleConverter<byte[], BinaryConverter>>, ReadOnlyMemory<byte>)

Checks with begins_with on a nullable binary attribute, which compares bytes.

public static BeginsWith BeginsWith(this Attr<byte[], NullableReferenceHandleConverter<byte[], BinaryConverter>> attribute, ReadOnlyMemory<byte> prefix)

Parameters

attribute Attr<byte[], NullableReferenceHandleConverter<byte[], BinaryConverter>>

The attribute.

prefix ReadOnlyMemory<byte>

The prefix bytes. The condition keeps a reference to this memory, so do not change it before the command is sent.

Returns

BeginsWith

The condition.

BeginsWith(Attr<byte[], NullableReferenceHandleConverter<byte[], BinaryConverter>>, string)

Does not compile, because a string prefix never matches a binary value.

[Obsolete("DynamoDB compares a binary attribute with a binary prefix, and answers with no item for a string. Pass the bytes.", true)]
public static BeginsWith BeginsWith(this Attr<byte[], NullableReferenceHandleConverter<byte[], BinaryConverter>> attribute, string prefix)

Parameters

attribute Attr<byte[], NullableReferenceHandleConverter<byte[], BinaryConverter>>

The attribute.

prefix string

The prefix.

Returns

BeginsWith

The condition.

BeginsWith(Attr<byte[], NullableReferenceHandleConverter<byte[], OmitEmptyCollectionConverter<byte[], byte, BinaryConverter>>>, ReadOnlyMemory<byte>)

Checks with begins_with on a nullable binary attribute with OmitEmptyAttribute, which compares bytes.

public static BeginsWith BeginsWith(this Attr<byte[], NullableReferenceHandleConverter<byte[], OmitEmptyCollectionConverter<byte[], byte, BinaryConverter>>> attribute, ReadOnlyMemory<byte> prefix)

Parameters

attribute Attr<byte[], NullableReferenceHandleConverter<byte[], OmitEmptyCollectionConverter<byte[], byte, BinaryConverter>>>

The attribute.

prefix ReadOnlyMemory<byte>

The prefix bytes. The condition keeps a reference to this memory, so do not change it before the command is sent.

Returns

BeginsWith

The condition.

BeginsWith(Attr<byte[], NullableReferenceHandleConverter<byte[], OmitEmptyCollectionConverter<byte[], byte, BinaryConverter>>>, string)

Does not compile, because a string prefix never matches a binary value.

[Obsolete("DynamoDB compares a binary attribute with a binary prefix, and answers with no item for a string. Pass the bytes.", true)]
public static BeginsWith BeginsWith(this Attr<byte[], NullableReferenceHandleConverter<byte[], OmitEmptyCollectionConverter<byte[], byte, BinaryConverter>>> attribute, string prefix)

Parameters

attribute Attr<byte[], NullableReferenceHandleConverter<byte[], OmitEmptyCollectionConverter<byte[], byte, BinaryConverter>>>

The attribute.

prefix string

The prefix.

Returns

BeginsWith

The condition.

BeginsWith(Attr<byte[], OmitEmptyCollectionConverter<byte[], byte, BinaryConverter>>, ReadOnlyMemory<byte>)

Checks with begins_with on a binary attribute with OmitEmptyAttribute, which compares bytes.

public static BeginsWith BeginsWith(this Attr<byte[], OmitEmptyCollectionConverter<byte[], byte, BinaryConverter>> attribute, ReadOnlyMemory<byte> prefix)

Parameters

attribute Attr<byte[], OmitEmptyCollectionConverter<byte[], byte, BinaryConverter>>

The attribute.

prefix ReadOnlyMemory<byte>

The prefix bytes. The condition keeps a reference to this memory, so do not change it before the command is sent.

Returns

BeginsWith

The condition.

BeginsWith(Attr<byte[], OmitEmptyCollectionConverter<byte[], byte, BinaryConverter>>, string)

Does not compile, because a string prefix never matches a binary value.

[Obsolete("DynamoDB compares a binary attribute with a binary prefix, and answers with no item for a string. Pass the bytes.", true)]
public static BeginsWith BeginsWith(this Attr<byte[], OmitEmptyCollectionConverter<byte[], byte, BinaryConverter>> attribute, string prefix)

Parameters

attribute Attr<byte[], OmitEmptyCollectionConverter<byte[], byte, BinaryConverter>>

The attribute.

prefix string

The prefix.

Returns

BeginsWith

The condition.

BeginsWith(Attr<DateTimeOffset, EpochSecondsConverter>, string)

Does not compile, because DynamoDB finds nothing with begins_with on a timestamp stored as a number.

[Obsolete("begins_with is for strings and binary values, and DynamoDB answers with no item for this attribute. Compare it with Eq, Gt or Between.", true)]
public static BeginsWith BeginsWith(this Attr<DateTimeOffset, EpochSecondsConverter> attribute, string prefix)

Parameters

attribute Attr<DateTimeOffset, EpochSecondsConverter>

The attribute.

prefix string

The prefix.

Returns

BeginsWith

The condition.

BeginsWith(Attr<DateTimeOffset, NullableHandleConverter<DateTimeOffset, EpochSecondsConverter>>, string)

Does not compile, because DynamoDB finds nothing with begins_with on a timestamp stored as a number.

[Obsolete("begins_with is for strings and binary values, and DynamoDB answers with no item for this attribute. Compare it with Eq, Gt or Between.", true)]
public static BeginsWith BeginsWith(this Attr<DateTimeOffset, NullableHandleConverter<DateTimeOffset, EpochSecondsConverter>> attribute, string prefix)

Parameters

attribute Attr<DateTimeOffset, NullableHandleConverter<DateTimeOffset, EpochSecondsConverter>>

The attribute.

prefix string

The prefix.

Returns

BeginsWith

The condition.

BeginsWith(Attr<ReadOnlyMemory<byte>, NullableHandleConverter<ReadOnlyMemory<byte>, ReadOnlyMemoryConverter>>, ReadOnlyMemory<byte>)

Checks with begins_with on a nullable binary attribute, which compares bytes.

public static BeginsWith BeginsWith(this Attr<ReadOnlyMemory<byte>, NullableHandleConverter<ReadOnlyMemory<byte>, ReadOnlyMemoryConverter>> attribute, ReadOnlyMemory<byte> prefix)

Parameters

attribute Attr<ReadOnlyMemory<byte>, NullableHandleConverter<ReadOnlyMemory<byte>, ReadOnlyMemoryConverter>>

The attribute.

prefix ReadOnlyMemory<byte>

The prefix bytes. The condition keeps a reference to this memory, so do not change it before the command is sent.

Returns

BeginsWith

The condition.

BeginsWith(Attr<ReadOnlyMemory<byte>, NullableHandleConverter<ReadOnlyMemory<byte>, ReadOnlyMemoryConverter>>, string)

Does not compile, because a string prefix never matches a binary value.

[Obsolete("DynamoDB compares a binary attribute with a binary prefix, and answers with no item for a string. Pass the bytes.", true)]
public static BeginsWith BeginsWith(this Attr<ReadOnlyMemory<byte>, NullableHandleConverter<ReadOnlyMemory<byte>, ReadOnlyMemoryConverter>> attribute, string prefix)

Parameters

attribute Attr<ReadOnlyMemory<byte>, NullableHandleConverter<ReadOnlyMemory<byte>, ReadOnlyMemoryConverter>>

The attribute.

prefix string

The prefix.

Returns

BeginsWith

The condition.

BeginsWith(Attr<ReadOnlyMemory<byte>, ReadOnlyMemoryConverter>, ReadOnlyMemory<byte>)

Checks with begins_with on a binary attribute, which compares bytes.

public static BeginsWith BeginsWith(this Attr<ReadOnlyMemory<byte>, ReadOnlyMemoryConverter> attribute, ReadOnlyMemory<byte> prefix)

Parameters

attribute Attr<ReadOnlyMemory<byte>, ReadOnlyMemoryConverter>

The attribute.

prefix ReadOnlyMemory<byte>

The prefix bytes. The condition keeps a reference to this memory, so do not change it before the command is sent.

Returns

BeginsWith

The condition.

BeginsWith(Attr<ReadOnlyMemory<byte>, ReadOnlyMemoryConverter>, string)

Does not compile, because a string prefix never matches a binary value.

[Obsolete("DynamoDB compares a binary attribute with a binary prefix, and answers with no item for a string. Pass the bytes.", true)]
public static BeginsWith BeginsWith(this Attr<ReadOnlyMemory<byte>, ReadOnlyMemoryConverter> attribute, string prefix)

Parameters

attribute Attr<ReadOnlyMemory<byte>, ReadOnlyMemoryConverter>

The attribute.

prefix string

The prefix.

Returns

BeginsWith

The condition.

BeginsWith<T>(Attr<T, NullableHandleConverter<T, NumberConverter<T>>>, string)

Does not compile, because DynamoDB finds nothing with begins_with on a number.

[Obsolete("begins_with is for strings and binary values, and DynamoDB answers with no item for this attribute. Compare it with Eq, Gt or Between.", true)]
public static BeginsWith BeginsWith<T>(this Attr<T, NullableHandleConverter<T, NumberConverter<T>>> attribute, string prefix) where T : struct, INumberBase<T>

Parameters

attribute Attr<T, NullableHandleConverter<T, NumberConverter<T>>>

The attribute.

prefix string

The prefix.

Returns

BeginsWith

The condition.

Type Parameters

T

The type of the number.

BeginsWith<T>(Attr<T, NumberConverter<T>>, string)

Does not compile, because DynamoDB finds nothing with begins_with on a number. Overload resolution prefers this to the general form for a handle of a number.

[Obsolete("begins_with is for strings and binary values, and DynamoDB answers with no item for this attribute. Compare it with Eq, Gt or Between.", true)]
public static BeginsWith BeginsWith<T>(this Attr<T, NumberConverter<T>> attribute, string prefix) where T : INumberBase<T>

Parameters

attribute Attr<T, NumberConverter<T>>

The attribute.

prefix string

The prefix.

Returns

BeginsWith

The condition.

Type Parameters

T

The type of the number.

BeginsWith<T, TConverter>(Attr<T, TConverter>, string)

Checks with begins_with, which is for strings and compares bytes. An enum, a Guid and a date are stored as strings, so it works on them, a number or a boolean does not compile, and a binary attribute takes a binary prefix.

public static BeginsWith BeginsWith<T, TConverter>(this Attr<T, TConverter> attribute, string prefix) where TConverter : IDynamoDbConverter<T>

Parameters

attribute Attr<T, TConverter>

The attribute.

prefix string

The prefix.

Returns

BeginsWith

The condition.

Type Parameters

T

The type of the attribute.

TConverter

The converter of the attribute.

Contains(Attr<string, NullableReferenceHandleConverter<string, OmitEmptyConverter<StringConverter>>>, string)

Checks with contains whether the string of a nullable property with OmitEmptyAttribute holds a substring. See Contains(Attr<string, StringConverter>, string).

public static Contains<string, StringConverter> Contains(this Attr<string, NullableReferenceHandleConverter<string, OmitEmptyConverter<StringConverter>>> attribute, string substring)

Parameters

attribute Attr<string, NullableReferenceHandleConverter<string, OmitEmptyConverter<StringConverter>>>

The attribute.

substring string

The substring.

Returns

Contains<string, StringConverter>

The condition.

Contains(Attr<string, NullableReferenceHandleConverter<string, StringConverter>>, string)

Checks with contains whether the string of a nullable property holds a substring. See Contains(Attr<string, StringConverter>, string).

public static Contains<string, StringConverter> Contains(this Attr<string, NullableReferenceHandleConverter<string, StringConverter>> attribute, string substring)

Parameters

attribute Attr<string, NullableReferenceHandleConverter<string, StringConverter>>

The attribute.

substring string

The substring.

Returns

Contains<string, StringConverter>

The condition.

Contains(Attr<string, OmitEmptyConverter<StringConverter>>, string)

Checks with contains whether the string of a property with OmitEmptyAttribute holds a substring. See Contains(Attr<string, StringConverter>, string).

public static Contains<string, StringConverter> Contains(this Attr<string, OmitEmptyConverter<StringConverter>> attribute, string substring)

Parameters

attribute Attr<string, OmitEmptyConverter<StringConverter>>

The attribute.

substring string

The substring.

Returns

Contains<string, StringConverter>

The condition.

Contains(Attr<string, StringConverter>, string)

Checks with contains whether a string holds a substring, compared by bytes, so case matters. An attribute that does not exist holds nothing, so the condition fails there and its Negate() holds.

public static Contains<string, StringConverter> Contains(this Attr<string, StringConverter> attribute, string substring)

Parameters

attribute Attr<string, StringConverter>

The attribute.

substring string

The substring.

Returns

Contains<string, StringConverter>

The condition.

Contains<T, TElement>(Attr<HashSet<T>, HashSetConverter<T, TElement>>, T)

Checks with contains whether a set holds an element, compared as the set stores it. An attribute that does not exist holds nothing, so the condition fails there and its Negate() holds, which makes Attrs.Seen.Contains(id).Negate() true for a new item.

public static Contains<T, SetElementValueConverter<T, TElement>> Contains<T, TElement>(this Attr<HashSet<T>, HashSetConverter<T, TElement>> attribute, T element) where TElement : IDynamoDbSetElementConverter<T>

Parameters

attribute Attr<HashSet<T>, HashSetConverter<T, TElement>>

The attribute.

element T

The element.

Returns

Contains<T, SetElementValueConverter<T, TElement>>

The condition.

Type Parameters

T

The element type.

TElement

The converter of the elements, which writes the operand as the set stores it.

Contains<T, TElement>(Attr<HashSet<T>, NullableReferenceHandleConverter<HashSet<T>, HashSetConverter<T, TElement>>>, T)

Checks with contains whether the set of a nullable property that is a HashSet<T> holds an element. See Contains<T, TElement>(Attr<HashSet<T>, HashSetConverter<T, TElement>>, T).

public static Contains<T, SetElementValueConverter<T, TElement>> Contains<T, TElement>(this Attr<HashSet<T>, NullableReferenceHandleConverter<HashSet<T>, HashSetConverter<T, TElement>>> attribute, T element) where TElement : IDynamoDbSetElementConverter<T>

Parameters

attribute Attr<HashSet<T>, NullableReferenceHandleConverter<HashSet<T>, HashSetConverter<T, TElement>>>

The attribute.

element T

The element.

Returns

Contains<T, SetElementValueConverter<T, TElement>>

The condition.

Type Parameters

T

The element type.

TElement

The converter of the elements, which writes the operand as the set stores it.

Contains<T, TElement>(Attr<HashSet<T>, NullableReferenceHandleConverter<HashSet<T>, OmitEmptySetConverter<HashSet<T>, T, HashSetConverter<T, TElement>>>>, T)

Checks with contains whether the set of a nullable property that is a HashSet<T> with OmitEmptyAttribute holds an element. See Contains<T, TElement>(Attr<HashSet<T>, HashSetConverter<T, TElement>>, T).

public static Contains<T, SetElementValueConverter<T, TElement>> Contains<T, TElement>(this Attr<HashSet<T>, NullableReferenceHandleConverter<HashSet<T>, OmitEmptySetConverter<HashSet<T>, T, HashSetConverter<T, TElement>>>> attribute, T element) where TElement : IDynamoDbSetElementConverter<T>

Parameters

attribute Attr<HashSet<T>, NullableReferenceHandleConverter<HashSet<T>, OmitEmptySetConverter<HashSet<T>, T, HashSetConverter<T, TElement>>>>

The attribute.

element T

The element.

Returns

Contains<T, SetElementValueConverter<T, TElement>>

The condition.

Type Parameters

T

The element type.

TElement

The converter of the elements, which writes the operand as the set stores it.

Contains<T, TElement>(Attr<HashSet<T>, OmitEmptySetConverter<HashSet<T>, T, HashSetConverter<T, TElement>>>, T)

Checks with contains whether the set of a property that is a HashSet<T> with OmitEmptyAttribute holds an element. See Contains<T, TElement>(Attr<HashSet<T>, HashSetConverter<T, TElement>>, T).

public static Contains<T, SetElementValueConverter<T, TElement>> Contains<T, TElement>(this Attr<HashSet<T>, OmitEmptySetConverter<HashSet<T>, T, HashSetConverter<T, TElement>>> attribute, T element) where TElement : IDynamoDbSetElementConverter<T>

Parameters

attribute Attr<HashSet<T>, OmitEmptySetConverter<HashSet<T>, T, HashSetConverter<T, TElement>>>

The attribute.

element T

The element.

Returns

Contains<T, SetElementValueConverter<T, TElement>>

The condition.

Type Parameters

T

The element type.

TElement

The converter of the elements, which writes the operand as the set stores it.

Contains<T, TConverter>(Attr<IList<T>, MutableListConverter<T, TConverter>>, T)

Checks with contains whether the list of a property that is an IList<T> holds an element equal to the value. See Contains<T, TConverter>(Attr<List<T>, ListConverter<T, TConverter>>, T).

public static Contains<T, TConverter> Contains<T, TConverter>(this Attr<IList<T>, MutableListConverter<T, TConverter>> attribute, T element) where TConverter : IDynamoDbConverter<T>

Parameters

attribute Attr<IList<T>, MutableListConverter<T, TConverter>>

The attribute.

element T

The element.

Returns

Contains<T, TConverter>

The condition.

Type Parameters

T

The element type.

TConverter

The converter of the elements, which writes the operand as the list stores it.

Contains<T, TConverter>(Attr<IList<T>, NullableReferenceHandleConverter<IList<T>, MutableListConverter<T, TConverter>>>, T)

Checks with contains whether the list of a nullable property that is an IList<T> holds an element equal to the value. See Contains<T, TConverter>(Attr<List<T>, ListConverter<T, TConverter>>, T).

public static Contains<T, TConverter> Contains<T, TConverter>(this Attr<IList<T>, NullableReferenceHandleConverter<IList<T>, MutableListConverter<T, TConverter>>> attribute, T element) where TConverter : IDynamoDbConverter<T>

Parameters

attribute Attr<IList<T>, NullableReferenceHandleConverter<IList<T>, MutableListConverter<T, TConverter>>>

The attribute.

element T

The element.

Returns

Contains<T, TConverter>

The condition.

Type Parameters

T

The element type.

TConverter

The converter of the elements, which writes the operand as the list stores it.

Contains<T, TConverter>(Attr<IList<T>, NullableReferenceHandleConverter<IList<T>, OmitEmptyCollectionConverter<IList<T>, T, MutableListConverter<T, TConverter>>>>, T)

Checks with contains whether the list of a nullable property that is an IList<T> with OmitEmptyAttribute holds an element equal to the value. See Contains<T, TConverter>(Attr<List<T>, ListConverter<T, TConverter>>, T).

public static Contains<T, TConverter> Contains<T, TConverter>(this Attr<IList<T>, NullableReferenceHandleConverter<IList<T>, OmitEmptyCollectionConverter<IList<T>, T, MutableListConverter<T, TConverter>>>> attribute, T element) where TConverter : IDynamoDbConverter<T>

Parameters

attribute Attr<IList<T>, NullableReferenceHandleConverter<IList<T>, OmitEmptyCollectionConverter<IList<T>, T, MutableListConverter<T, TConverter>>>>

The attribute.

element T

The element.

Returns

Contains<T, TConverter>

The condition.

Type Parameters

T

The element type.

TConverter

The converter of the elements, which writes the operand as the list stores it.

Contains<T, TConverter>(Attr<IList<T>, OmitEmptyCollectionConverter<IList<T>, T, MutableListConverter<T, TConverter>>>, T)

Checks with contains whether the list of a property that is an IList<T> with OmitEmptyAttribute holds an element equal to the value. See Contains<T, TConverter>(Attr<List<T>, ListConverter<T, TConverter>>, T).

public static Contains<T, TConverter> Contains<T, TConverter>(this Attr<IList<T>, OmitEmptyCollectionConverter<IList<T>, T, MutableListConverter<T, TConverter>>> attribute, T element) where TConverter : IDynamoDbConverter<T>

Parameters

attribute Attr<IList<T>, OmitEmptyCollectionConverter<IList<T>, T, MutableListConverter<T, TConverter>>>

The attribute.

element T

The element.

Returns

Contains<T, TConverter>

The condition.

Type Parameters

T

The element type.

TConverter

The converter of the elements, which writes the operand as the list stores it.

Contains<T, TConverter>(Attr<IReadOnlyList<T>, NullableReferenceHandleConverter<IReadOnlyList<T>, OmitEmptyCollectionConverter<IReadOnlyList<T>, T, ReadOnlyListConverter<T, TConverter>>>>, T)

Checks with contains whether the list of a nullable property that is an IReadOnlyList<T> with OmitEmptyAttribute holds an element equal to the value. See Contains<T, TConverter>(Attr<List<T>, ListConverter<T, TConverter>>, T).

public static Contains<T, TConverter> Contains<T, TConverter>(this Attr<IReadOnlyList<T>, NullableReferenceHandleConverter<IReadOnlyList<T>, OmitEmptyCollectionConverter<IReadOnlyList<T>, T, ReadOnlyListConverter<T, TConverter>>>> attribute, T element) where TConverter : IDynamoDbConverter<T>

Parameters

attribute Attr<IReadOnlyList<T>, NullableReferenceHandleConverter<IReadOnlyList<T>, OmitEmptyCollectionConverter<IReadOnlyList<T>, T, ReadOnlyListConverter<T, TConverter>>>>

The attribute.

element T

The element.

Returns

Contains<T, TConverter>

The condition.

Type Parameters

T

The element type.

TConverter

The converter of the elements, which writes the operand as the list stores it.

Contains<T, TConverter>(Attr<IReadOnlyList<T>, NullableReferenceHandleConverter<IReadOnlyList<T>, ReadOnlyListConverter<T, TConverter>>>, T)

Checks with contains whether the list of a nullable property that is an IReadOnlyList<T> holds an element equal to the value. See Contains<T, TConverter>(Attr<List<T>, ListConverter<T, TConverter>>, T).

public static Contains<T, TConverter> Contains<T, TConverter>(this Attr<IReadOnlyList<T>, NullableReferenceHandleConverter<IReadOnlyList<T>, ReadOnlyListConverter<T, TConverter>>> attribute, T element) where TConverter : IDynamoDbConverter<T>

Parameters

attribute Attr<IReadOnlyList<T>, NullableReferenceHandleConverter<IReadOnlyList<T>, ReadOnlyListConverter<T, TConverter>>>

The attribute.

element T

The element.

Returns

Contains<T, TConverter>

The condition.

Type Parameters

T

The element type.

TConverter

The converter of the elements, which writes the operand as the list stores it.

Contains<T, TConverter>(Attr<IReadOnlyList<T>, OmitEmptyCollectionConverter<IReadOnlyList<T>, T, ReadOnlyListConverter<T, TConverter>>>, T)

Checks with contains whether the list of a property that is an IReadOnlyList<T> with OmitEmptyAttribute holds an element equal to the value. See Contains<T, TConverter>(Attr<List<T>, ListConverter<T, TConverter>>, T).

public static Contains<T, TConverter> Contains<T, TConverter>(this Attr<IReadOnlyList<T>, OmitEmptyCollectionConverter<IReadOnlyList<T>, T, ReadOnlyListConverter<T, TConverter>>> attribute, T element) where TConverter : IDynamoDbConverter<T>

Parameters

attribute Attr<IReadOnlyList<T>, OmitEmptyCollectionConverter<IReadOnlyList<T>, T, ReadOnlyListConverter<T, TConverter>>>

The attribute.

element T

The element.

Returns

Contains<T, TConverter>

The condition.

Type Parameters

T

The element type.

TConverter

The converter of the elements, which writes the operand as the list stores it.

Contains<T, TConverter>(Attr<IReadOnlyList<T>, ReadOnlyListConverter<T, TConverter>>, T)

Checks with contains whether the list of a property that is an IReadOnlyList<T> holds an element equal to the value. See Contains<T, TConverter>(Attr<List<T>, ListConverter<T, TConverter>>, T).

public static Contains<T, TConverter> Contains<T, TConverter>(this Attr<IReadOnlyList<T>, ReadOnlyListConverter<T, TConverter>> attribute, T element) where TConverter : IDynamoDbConverter<T>

Parameters

attribute Attr<IReadOnlyList<T>, ReadOnlyListConverter<T, TConverter>>

The attribute.

element T

The element.

Returns

Contains<T, TConverter>

The condition.

Type Parameters

T

The element type.

TConverter

The converter of the elements, which writes the operand as the list stores it.

Contains<T, TElement>(Attr<IReadOnlySet<T>, NullableReferenceHandleConverter<IReadOnlySet<T>, OmitEmptySetConverter<IReadOnlySet<T>, T, ReadOnlySetConverter<T, TElement>>>>, T)

Checks with contains whether the set of a nullable property that is an IReadOnlySet<T> with OmitEmptyAttribute holds an element. See Contains<T, TElement>(Attr<HashSet<T>, HashSetConverter<T, TElement>>, T).

public static Contains<T, SetElementValueConverter<T, TElement>> Contains<T, TElement>(this Attr<IReadOnlySet<T>, NullableReferenceHandleConverter<IReadOnlySet<T>, OmitEmptySetConverter<IReadOnlySet<T>, T, ReadOnlySetConverter<T, TElement>>>> attribute, T element) where TElement : IDynamoDbSetElementConverter<T>

Parameters

attribute Attr<IReadOnlySet<T>, NullableReferenceHandleConverter<IReadOnlySet<T>, OmitEmptySetConverter<IReadOnlySet<T>, T, ReadOnlySetConverter<T, TElement>>>>

The attribute.

element T

The element.

Returns

Contains<T, SetElementValueConverter<T, TElement>>

The condition.

Type Parameters

T

The element type.

TElement

The converter of the elements, which writes the operand as the set stores it.

Contains<T, TElement>(Attr<IReadOnlySet<T>, NullableReferenceHandleConverter<IReadOnlySet<T>, ReadOnlySetConverter<T, TElement>>>, T)

Checks with contains whether the set of a nullable property that is an IReadOnlySet<T> holds an element. See Contains<T, TElement>(Attr<HashSet<T>, HashSetConverter<T, TElement>>, T).

public static Contains<T, SetElementValueConverter<T, TElement>> Contains<T, TElement>(this Attr<IReadOnlySet<T>, NullableReferenceHandleConverter<IReadOnlySet<T>, ReadOnlySetConverter<T, TElement>>> attribute, T element) where TElement : IDynamoDbSetElementConverter<T>

Parameters

attribute Attr<IReadOnlySet<T>, NullableReferenceHandleConverter<IReadOnlySet<T>, ReadOnlySetConverter<T, TElement>>>

The attribute.

element T

The element.

Returns

Contains<T, SetElementValueConverter<T, TElement>>

The condition.

Type Parameters

T

The element type.

TElement

The converter of the elements, which writes the operand as the set stores it.

Contains<T, TElement>(Attr<IReadOnlySet<T>, OmitEmptySetConverter<IReadOnlySet<T>, T, ReadOnlySetConverter<T, TElement>>>, T)

Checks with contains whether the set of a property that is an IReadOnlySet<T> with OmitEmptyAttribute holds an element. See Contains<T, TElement>(Attr<HashSet<T>, HashSetConverter<T, TElement>>, T).

public static Contains<T, SetElementValueConverter<T, TElement>> Contains<T, TElement>(this Attr<IReadOnlySet<T>, OmitEmptySetConverter<IReadOnlySet<T>, T, ReadOnlySetConverter<T, TElement>>> attribute, T element) where TElement : IDynamoDbSetElementConverter<T>

Parameters

attribute Attr<IReadOnlySet<T>, OmitEmptySetConverter<IReadOnlySet<T>, T, ReadOnlySetConverter<T, TElement>>>

The attribute.

element T

The element.

Returns

Contains<T, SetElementValueConverter<T, TElement>>

The condition.

Type Parameters

T

The element type.

TElement

The converter of the elements, which writes the operand as the set stores it.

Contains<T, TElement>(Attr<IReadOnlySet<T>, ReadOnlySetConverter<T, TElement>>, T)

Checks with contains whether the set of a property that is an IReadOnlySet<T> holds an element. See Contains<T, TElement>(Attr<HashSet<T>, HashSetConverter<T, TElement>>, T).

public static Contains<T, SetElementValueConverter<T, TElement>> Contains<T, TElement>(this Attr<IReadOnlySet<T>, ReadOnlySetConverter<T, TElement>> attribute, T element) where TElement : IDynamoDbSetElementConverter<T>

Parameters

attribute Attr<IReadOnlySet<T>, ReadOnlySetConverter<T, TElement>>

The attribute.

element T

The element.

Returns

Contains<T, SetElementValueConverter<T, TElement>>

The condition.

Type Parameters

T

The element type.

TElement

The converter of the elements, which writes the operand as the set stores it.

Contains<T, TConverter>(Attr<List<T>, ListConverter<T, TConverter>>, T)

Checks with contains whether a list holds an element equal to the value, which DynamoDB compares by type and value. An attribute that does not exist holds nothing, so the condition fails there and its Negate() holds.

public static Contains<T, TConverter> Contains<T, TConverter>(this Attr<List<T>, ListConverter<T, TConverter>> attribute, T element) where TConverter : IDynamoDbConverter<T>

Parameters

attribute Attr<List<T>, ListConverter<T, TConverter>>

The attribute.

element T

The element.

Returns

Contains<T, TConverter>

The condition.

Type Parameters

T

The element type.

TConverter

The converter of the elements, which writes the operand as the list stores it.

Contains<T, TConverter>(Attr<List<T>, NullableReferenceHandleConverter<List<T>, ListConverter<T, TConverter>>>, T)

Checks with contains whether the list of a nullable property that is a List<T> holds an element equal to the value. See Contains<T, TConverter>(Attr<List<T>, ListConverter<T, TConverter>>, T).

public static Contains<T, TConverter> Contains<T, TConverter>(this Attr<List<T>, NullableReferenceHandleConverter<List<T>, ListConverter<T, TConverter>>> attribute, T element) where TConverter : IDynamoDbConverter<T>

Parameters

attribute Attr<List<T>, NullableReferenceHandleConverter<List<T>, ListConverter<T, TConverter>>>

The attribute.

element T

The element.

Returns

Contains<T, TConverter>

The condition.

Type Parameters

T

The element type.

TConverter

The converter of the elements, which writes the operand as the list stores it.

Contains<T, TConverter>(Attr<List<T>, NullableReferenceHandleConverter<List<T>, OmitEmptyCollectionConverter<List<T>, T, ListConverter<T, TConverter>>>>, T)

Checks with contains whether the list of a nullable property that is a List<T> with OmitEmptyAttribute holds an element equal to the value. See Contains<T, TConverter>(Attr<List<T>, ListConverter<T, TConverter>>, T).

public static Contains<T, TConverter> Contains<T, TConverter>(this Attr<List<T>, NullableReferenceHandleConverter<List<T>, OmitEmptyCollectionConverter<List<T>, T, ListConverter<T, TConverter>>>> attribute, T element) where TConverter : IDynamoDbConverter<T>

Parameters

attribute Attr<List<T>, NullableReferenceHandleConverter<List<T>, OmitEmptyCollectionConverter<List<T>, T, ListConverter<T, TConverter>>>>

The attribute.

element T

The element.

Returns

Contains<T, TConverter>

The condition.

Type Parameters

T

The element type.

TConverter

The converter of the elements, which writes the operand as the list stores it.

Contains<T, TConverter>(Attr<List<T>, OmitEmptyCollectionConverter<List<T>, T, ListConverter<T, TConverter>>>, T)

Checks with contains whether the list of a property that is a List<T> with OmitEmptyAttribute holds an element equal to the value. See Contains<T, TConverter>(Attr<List<T>, ListConverter<T, TConverter>>, T).

public static Contains<T, TConverter> Contains<T, TConverter>(this Attr<List<T>, OmitEmptyCollectionConverter<List<T>, T, ListConverter<T, TConverter>>> attribute, T element) where TConverter : IDynamoDbConverter<T>

Parameters

attribute Attr<List<T>, OmitEmptyCollectionConverter<List<T>, T, ListConverter<T, TConverter>>>

The attribute.

element T

The element.

Returns

Contains<T, TConverter>

The condition.

Type Parameters

T

The element type.

TConverter

The converter of the elements, which writes the operand as the list stores it.

Contains<T, TConverter>(Attr<T[], ArrayConverter<T, TConverter>>, T)

Checks with contains whether the list of a property that is an array holds an element equal to the value. See Contains<T, TConverter>(Attr<List<T>, ListConverter<T, TConverter>>, T).

public static Contains<T, TConverter> Contains<T, TConverter>(this Attr<T[], ArrayConverter<T, TConverter>> attribute, T element) where TConverter : IDynamoDbConverter<T>

Parameters

attribute Attr<T[], ArrayConverter<T, TConverter>>

The attribute.

element T

The element.

Returns

Contains<T, TConverter>

The condition.

Type Parameters

T

The element type.

TConverter

The converter of the elements, which writes the operand as the list stores it.

Contains<T, TConverter>(Attr<T[], NullableReferenceHandleConverter<T[], ArrayConverter<T, TConverter>>>, T)

Checks with contains whether the list of a nullable property that is an array holds an element equal to the value. See Contains<T, TConverter>(Attr<List<T>, ListConverter<T, TConverter>>, T).

public static Contains<T, TConverter> Contains<T, TConverter>(this Attr<T[], NullableReferenceHandleConverter<T[], ArrayConverter<T, TConverter>>> attribute, T element) where TConverter : IDynamoDbConverter<T>

Parameters

attribute Attr<T[], NullableReferenceHandleConverter<T[], ArrayConverter<T, TConverter>>>

The attribute.

element T

The element.

Returns

Contains<T, TConverter>

The condition.

Type Parameters

T

The element type.

TConverter

The converter of the elements, which writes the operand as the list stores it.

Contains<T, TConverter>(Attr<T[], NullableReferenceHandleConverter<T[], OmitEmptyCollectionConverter<T[], T, ArrayConverter<T, TConverter>>>>, T)

Checks with contains whether the list of a nullable property that is an array with OmitEmptyAttribute holds an element equal to the value. See Contains<T, TConverter>(Attr<List<T>, ListConverter<T, TConverter>>, T).

public static Contains<T, TConverter> Contains<T, TConverter>(this Attr<T[], NullableReferenceHandleConverter<T[], OmitEmptyCollectionConverter<T[], T, ArrayConverter<T, TConverter>>>> attribute, T element) where TConverter : IDynamoDbConverter<T>

Parameters

attribute Attr<T[], NullableReferenceHandleConverter<T[], OmitEmptyCollectionConverter<T[], T, ArrayConverter<T, TConverter>>>>

The attribute.

element T

The element.

Returns

Contains<T, TConverter>

The condition.

Type Parameters

T

The element type.

TConverter

The converter of the elements, which writes the operand as the list stores it.

Contains<T, TElement>(Attr<T[], NullableReferenceHandleConverter<T[], OmitEmptySetConverter<T[], T, SetArrayConverter<T, TElement>>>>, T)

Checks with contains whether the set of a nullable property that is an array stored as a set with OmitEmptyAttribute holds an element. See Contains<T, TElement>(Attr<HashSet<T>, HashSetConverter<T, TElement>>, T).

public static Contains<T, SetElementValueConverter<T, TElement>> Contains<T, TElement>(this Attr<T[], NullableReferenceHandleConverter<T[], OmitEmptySetConverter<T[], T, SetArrayConverter<T, TElement>>>> attribute, T element) where TElement : IDynamoDbSetElementConverter<T>

Parameters

attribute Attr<T[], NullableReferenceHandleConverter<T[], OmitEmptySetConverter<T[], T, SetArrayConverter<T, TElement>>>>

The attribute.

element T

The element.

Returns

Contains<T, SetElementValueConverter<T, TElement>>

The condition.

Type Parameters

T

The element type.

TElement

The converter of the elements, which writes the operand as the set stores it.

Contains<T, TElement>(Attr<T[], NullableReferenceHandleConverter<T[], SetArrayConverter<T, TElement>>>, T)

Checks with contains whether the set of a nullable property that is an array stored as a set holds an element. See Contains<T, TElement>(Attr<HashSet<T>, HashSetConverter<T, TElement>>, T).

public static Contains<T, SetElementValueConverter<T, TElement>> Contains<T, TElement>(this Attr<T[], NullableReferenceHandleConverter<T[], SetArrayConverter<T, TElement>>> attribute, T element) where TElement : IDynamoDbSetElementConverter<T>

Parameters

attribute Attr<T[], NullableReferenceHandleConverter<T[], SetArrayConverter<T, TElement>>>

The attribute.

element T

The element.

Returns

Contains<T, SetElementValueConverter<T, TElement>>

The condition.

Type Parameters

T

The element type.

TElement

The converter of the elements, which writes the operand as the set stores it.

Contains<T, TConverter>(Attr<T[], OmitEmptyCollectionConverter<T[], T, ArrayConverter<T, TConverter>>>, T)

Checks with contains whether the list of a property that is an array with OmitEmptyAttribute holds an element equal to the value. See Contains<T, TConverter>(Attr<List<T>, ListConverter<T, TConverter>>, T).

public static Contains<T, TConverter> Contains<T, TConverter>(this Attr<T[], OmitEmptyCollectionConverter<T[], T, ArrayConverter<T, TConverter>>> attribute, T element) where TConverter : IDynamoDbConverter<T>

Parameters

attribute Attr<T[], OmitEmptyCollectionConverter<T[], T, ArrayConverter<T, TConverter>>>

The attribute.

element T

The element.

Returns

Contains<T, TConverter>

The condition.

Type Parameters

T

The element type.

TConverter

The converter of the elements, which writes the operand as the list stores it.

Contains<T, TElement>(Attr<T[], OmitEmptySetConverter<T[], T, SetArrayConverter<T, TElement>>>, T)

Checks with contains whether the set of a property that is an array stored as a set with OmitEmptyAttribute holds an element. See Contains<T, TElement>(Attr<HashSet<T>, HashSetConverter<T, TElement>>, T).

public static Contains<T, SetElementValueConverter<T, TElement>> Contains<T, TElement>(this Attr<T[], OmitEmptySetConverter<T[], T, SetArrayConverter<T, TElement>>> attribute, T element) where TElement : IDynamoDbSetElementConverter<T>

Parameters

attribute Attr<T[], OmitEmptySetConverter<T[], T, SetArrayConverter<T, TElement>>>

The attribute.

element T

The element.

Returns

Contains<T, SetElementValueConverter<T, TElement>>

The condition.

Type Parameters

T

The element type.

TElement

The converter of the elements, which writes the operand as the set stores it.

Contains<T, TElement>(Attr<T[], SetArrayConverter<T, TElement>>, T)

Checks with contains whether the set of a property that is an array stored as a set holds an element. See Contains<T, TElement>(Attr<HashSet<T>, HashSetConverter<T, TElement>>, T).

public static Contains<T, SetElementValueConverter<T, TElement>> Contains<T, TElement>(this Attr<T[], SetArrayConverter<T, TElement>> attribute, T element) where TElement : IDynamoDbSetElementConverter<T>

Parameters

attribute Attr<T[], SetArrayConverter<T, TElement>>

The attribute.

element T

The element.

Returns

Contains<T, SetElementValueConverter<T, TElement>>

The condition.

Type Parameters

T

The element type.

TElement

The converter of the elements, which writes the operand as the set stores it.