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
documentAttr<TDocument, TConverter>The attribute that holds the document.
attributeAttr<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
TDocumentThe document. A handle of a scalar has nothing inside, so it does not compile.
TConverterThe converter of the document.
TValueThe type of the inner attribute.
TValueConverterThe 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
attributeAttr<bool, BoolConverter>The attribute.
prefixstringThe 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
attributeAttr<bool, NullableHandleConverter<bool, BoolConverter>>The attribute.
prefixstringThe 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
attributeAttr<byte[], BinaryConverter>The attribute.
prefixReadOnlyMemory<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
attributeAttr<byte[], BinaryConverter>The attribute.
prefixstringThe 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
attributeAttr<byte[], NullableReferenceHandleConverter<byte[], BinaryConverter>>The attribute.
prefixReadOnlyMemory<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
attributeAttr<byte[], NullableReferenceHandleConverter<byte[], BinaryConverter>>The attribute.
prefixstringThe 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
attributeAttr<byte[], NullableReferenceHandleConverter<byte[], OmitEmptyCollectionConverter<byte[], byte, BinaryConverter>>>The attribute.
prefixReadOnlyMemory<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
attributeAttr<byte[], NullableReferenceHandleConverter<byte[], OmitEmptyCollectionConverter<byte[], byte, BinaryConverter>>>The attribute.
prefixstringThe 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
attributeAttr<byte[], OmitEmptyCollectionConverter<byte[], byte, BinaryConverter>>The attribute.
prefixReadOnlyMemory<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
attributeAttr<byte[], OmitEmptyCollectionConverter<byte[], byte, BinaryConverter>>The attribute.
prefixstringThe 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
attributeAttr<DateTimeOffset, EpochSecondsConverter>The attribute.
prefixstringThe 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
attributeAttr<DateTimeOffset, NullableHandleConverter<DateTimeOffset, EpochSecondsConverter>>The attribute.
prefixstringThe 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
attributeAttr<ReadOnlyMemory<byte>, NullableHandleConverter<ReadOnlyMemory<byte>, ReadOnlyMemoryConverter>>The attribute.
prefixReadOnlyMemory<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
attributeAttr<ReadOnlyMemory<byte>, NullableHandleConverter<ReadOnlyMemory<byte>, ReadOnlyMemoryConverter>>The attribute.
prefixstringThe 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
attributeAttr<ReadOnlyMemory<byte>, ReadOnlyMemoryConverter>The attribute.
prefixReadOnlyMemory<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
attributeAttr<ReadOnlyMemory<byte>, ReadOnlyMemoryConverter>The attribute.
prefixstringThe 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
attributeAttr<T, NullableHandleConverter<T, NumberConverter<T>>>The attribute.
prefixstringThe prefix.
Returns
- BeginsWith
The condition.
Type Parameters
TThe 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
attributeAttr<T, NumberConverter<T>>The attribute.
prefixstringThe prefix.
Returns
- BeginsWith
The condition.
Type Parameters
TThe 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
Returns
- BeginsWith
The condition.
Type Parameters
TThe type of the attribute.
TConverterThe 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
attributeAttr<string, NullableReferenceHandleConverter<string, OmitEmptyConverter<StringConverter>>>The attribute.
substringstringThe 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
attributeAttr<string, NullableReferenceHandleConverter<string, StringConverter>>The attribute.
substringstringThe 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
attributeAttr<string, OmitEmptyConverter<StringConverter>>The attribute.
substringstringThe 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
attributeAttr<string, StringConverter>The attribute.
substringstringThe 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
attributeAttr<HashSet<T>, HashSetConverter<T, TElement>>The attribute.
elementTThe element.
Returns
- Contains<T, SetElementValueConverter<T, TElement>>
The condition.
Type Parameters
TThe element type.
TElementThe 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
attributeAttr<HashSet<T>, NullableReferenceHandleConverter<HashSet<T>, HashSetConverter<T, TElement>>>The attribute.
elementTThe element.
Returns
- Contains<T, SetElementValueConverter<T, TElement>>
The condition.
Type Parameters
TThe element type.
TElementThe 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
attributeAttr<HashSet<T>, NullableReferenceHandleConverter<HashSet<T>, OmitEmptySetConverter<HashSet<T>, T, HashSetConverter<T, TElement>>>>The attribute.
elementTThe element.
Returns
- Contains<T, SetElementValueConverter<T, TElement>>
The condition.
Type Parameters
TThe element type.
TElementThe 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
attributeAttr<HashSet<T>, OmitEmptySetConverter<HashSet<T>, T, HashSetConverter<T, TElement>>>The attribute.
elementTThe element.
Returns
- Contains<T, SetElementValueConverter<T, TElement>>
The condition.
Type Parameters
TThe element type.
TElementThe 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
attributeAttr<IList<T>, MutableListConverter<T, TConverter>>The attribute.
elementTThe element.
Returns
- Contains<T, TConverter>
The condition.
Type Parameters
TThe element type.
TConverterThe 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
attributeAttr<IList<T>, NullableReferenceHandleConverter<IList<T>, MutableListConverter<T, TConverter>>>The attribute.
elementTThe element.
Returns
- Contains<T, TConverter>
The condition.
Type Parameters
TThe element type.
TConverterThe 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
attributeAttr<IList<T>, NullableReferenceHandleConverter<IList<T>, OmitEmptyCollectionConverter<IList<T>, T, MutableListConverter<T, TConverter>>>>The attribute.
elementTThe element.
Returns
- Contains<T, TConverter>
The condition.
Type Parameters
TThe element type.
TConverterThe 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
attributeAttr<IList<T>, OmitEmptyCollectionConverter<IList<T>, T, MutableListConverter<T, TConverter>>>The attribute.
elementTThe element.
Returns
- Contains<T, TConverter>
The condition.
Type Parameters
TThe element type.
TConverterThe 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
attributeAttr<IReadOnlyList<T>, NullableReferenceHandleConverter<IReadOnlyList<T>, OmitEmptyCollectionConverter<IReadOnlyList<T>, T, ReadOnlyListConverter<T, TConverter>>>>The attribute.
elementTThe element.
Returns
- Contains<T, TConverter>
The condition.
Type Parameters
TThe element type.
TConverterThe 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
attributeAttr<IReadOnlyList<T>, NullableReferenceHandleConverter<IReadOnlyList<T>, ReadOnlyListConverter<T, TConverter>>>The attribute.
elementTThe element.
Returns
- Contains<T, TConverter>
The condition.
Type Parameters
TThe element type.
TConverterThe 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
attributeAttr<IReadOnlyList<T>, OmitEmptyCollectionConverter<IReadOnlyList<T>, T, ReadOnlyListConverter<T, TConverter>>>The attribute.
elementTThe element.
Returns
- Contains<T, TConverter>
The condition.
Type Parameters
TThe element type.
TConverterThe 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
attributeAttr<IReadOnlyList<T>, ReadOnlyListConverter<T, TConverter>>The attribute.
elementTThe element.
Returns
- Contains<T, TConverter>
The condition.
Type Parameters
TThe element type.
TConverterThe 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
attributeAttr<IReadOnlySet<T>, NullableReferenceHandleConverter<IReadOnlySet<T>, OmitEmptySetConverter<IReadOnlySet<T>, T, ReadOnlySetConverter<T, TElement>>>>The attribute.
elementTThe element.
Returns
- Contains<T, SetElementValueConverter<T, TElement>>
The condition.
Type Parameters
TThe element type.
TElementThe 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
attributeAttr<IReadOnlySet<T>, NullableReferenceHandleConverter<IReadOnlySet<T>, ReadOnlySetConverter<T, TElement>>>The attribute.
elementTThe element.
Returns
- Contains<T, SetElementValueConverter<T, TElement>>
The condition.
Type Parameters
TThe element type.
TElementThe 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
attributeAttr<IReadOnlySet<T>, OmitEmptySetConverter<IReadOnlySet<T>, T, ReadOnlySetConverter<T, TElement>>>The attribute.
elementTThe element.
Returns
- Contains<T, SetElementValueConverter<T, TElement>>
The condition.
Type Parameters
TThe element type.
TElementThe 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
attributeAttr<IReadOnlySet<T>, ReadOnlySetConverter<T, TElement>>The attribute.
elementTThe element.
Returns
- Contains<T, SetElementValueConverter<T, TElement>>
The condition.
Type Parameters
TThe element type.
TElementThe 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
attributeAttr<List<T>, ListConverter<T, TConverter>>The attribute.
elementTThe element.
Returns
- Contains<T, TConverter>
The condition.
Type Parameters
TThe element type.
TConverterThe 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
attributeAttr<List<T>, NullableReferenceHandleConverter<List<T>, ListConverter<T, TConverter>>>The attribute.
elementTThe element.
Returns
- Contains<T, TConverter>
The condition.
Type Parameters
TThe element type.
TConverterThe 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
attributeAttr<List<T>, NullableReferenceHandleConverter<List<T>, OmitEmptyCollectionConverter<List<T>, T, ListConverter<T, TConverter>>>>The attribute.
elementTThe element.
Returns
- Contains<T, TConverter>
The condition.
Type Parameters
TThe element type.
TConverterThe 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
attributeAttr<List<T>, OmitEmptyCollectionConverter<List<T>, T, ListConverter<T, TConverter>>>The attribute.
elementTThe element.
Returns
- Contains<T, TConverter>
The condition.
Type Parameters
TThe element type.
TConverterThe 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
attributeAttr<T[], ArrayConverter<T, TConverter>>The attribute.
elementTThe element.
Returns
- Contains<T, TConverter>
The condition.
Type Parameters
TThe element type.
TConverterThe 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
attributeAttr<T[], NullableReferenceHandleConverter<T[], ArrayConverter<T, TConverter>>>The attribute.
elementTThe element.
Returns
- Contains<T, TConverter>
The condition.
Type Parameters
TThe element type.
TConverterThe 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
attributeAttr<T[], NullableReferenceHandleConverter<T[], OmitEmptyCollectionConverter<T[], T, ArrayConverter<T, TConverter>>>>The attribute.
elementTThe element.
Returns
- Contains<T, TConverter>
The condition.
Type Parameters
TThe element type.
TConverterThe 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
attributeAttr<T[], NullableReferenceHandleConverter<T[], OmitEmptySetConverter<T[], T, SetArrayConverter<T, TElement>>>>The attribute.
elementTThe element.
Returns
- Contains<T, SetElementValueConverter<T, TElement>>
The condition.
Type Parameters
TThe element type.
TElementThe 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
attributeAttr<T[], NullableReferenceHandleConverter<T[], SetArrayConverter<T, TElement>>>The attribute.
elementTThe element.
Returns
- Contains<T, SetElementValueConverter<T, TElement>>
The condition.
Type Parameters
TThe element type.
TElementThe 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
attributeAttr<T[], OmitEmptyCollectionConverter<T[], T, ArrayConverter<T, TConverter>>>The attribute.
elementTThe element.
Returns
- Contains<T, TConverter>
The condition.
Type Parameters
TThe element type.
TConverterThe 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
attributeAttr<T[], OmitEmptySetConverter<T[], T, SetArrayConverter<T, TElement>>>The attribute.
elementTThe element.
Returns
- Contains<T, SetElementValueConverter<T, TElement>>
The condition.
Type Parameters
TThe element type.
TElementThe 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
attributeAttr<T[], SetArrayConverter<T, TElement>>The attribute.
elementTThe element.
Returns
- Contains<T, SetElementValueConverter<T, TElement>>
The condition.
Type Parameters
TThe element type.
TElementThe converter of the elements, which writes the operand as the set stores it.