Class BoolAsNConverter
- Namespace
- Amazon.DynamoDBv2
- Assembly
- AWSSDK.DynamoDBv2.dll
Class that implements IPropertyConverter to convert bool/Boolean .NET types to DynamoDB numeric (N) type, where true is stored as N:1, false as N:0.
Use this converter to bypass the default schema behavior for a particular property.
public class BoolAsNConverter : IPropertyConverter
- Inheritance
-
BoolAsNConverter
- Implements
- Inherited Members
Constructors
BoolAsNConverter()
public BoolAsNConverter()
Methods
FromEntry(DynamoDBEntry)
Converts DynamoDBEntry to object
public object FromEntry(DynamoDBEntry entry)
Parameters
entry
DynamoDBEntry
Returns
ToEntry(object)
Converts object to DynamoDBEntry
public DynamoDBEntry ToEntry(object value)
Parameters
value
object