Open
Description
It seems to me that NodaTime is becoming a defacto library for many C# projects, much like Json.Net due to its superior handling of DateTime concepts. I feel it would be very beneficial if there was native support for NodaTime built into EFCore. I have attempted to make it work with ValueConverters but there are some current limitations: #10434, #11156. Even once those issues are resolved it would still only support the converting of the types but not necessarily allow using any SQL functions related to DateTime types, ie DATEPART
, DATEADD
etc.
To that end I have created a repo here that is an initial attempt at adding support for the major types:
- Instant
- OffsetDateTime
- LocalDateTime
- LocalDate
- LocalTime
- Duration
The reason for this ticket is 2-fold:
- Put this out there for the community to help develop/contribute to.
- Create a placeholder for adding this functionality directly into EntityFrameworkCore.