Skip to content

Support DateOnly / TimeOnly in DynamoDBContext #3673

Closed
@Dreamescaper

Description

@Dreamescaper

Describe the feature

I would be nice if DynamoDBContext supported DateOnly / TimeOnly properties natively.
Currently users have to implement custom converters to allow that.

Use Case

Storing data which has only date information, without time.

Proposed Solution

Add

  • DateOnlyConverterV1
  • TimeOnlyConverterV1
  • DateOnlyConverterV2
  • TimeOnlyConverterV2

(Behavior is identical for both versions).

DateOnly / TimeOnly types are not available in netstandard, so this functionality should only be available for supported target frameworks.

Other Information

No response

Acknowledgements

  • I may be able to implement this feature request
  • This feature might incur a breaking change

AWS .NET SDK and/or Package version used

AWSSDK.DynamoDBv2 3.7.405.28

Targeted .NET Platform

.NET 8

Operating System and version

AmazonLinux

Metadata

Metadata

Assignees

No one assigned

    Labels

    dynamodbfeature-requestA feature should be added or improved.p2This is a standard priority issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions