Skip to content

Create specification tests for EF Core with NodaTime #20114

@StevenRasmussen

Description

@StevenRasmussen

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:

  1. Put this out there for the community to help develop/contribute to.
  2. Create a placeholder for adding this functionality directly into EntityFrameworkCore.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions