Skip to content
This repository has been archived by the owner on Nov 20, 2022. It is now read-only.

Latest commit

 

History

History
39 lines (28 loc) · 822 Bytes

README.md

File metadata and controls

39 lines (28 loc) · 822 Bytes

Dapper-NodaTime NuGet Version

Noda Time support for Dapper

PM> Install-Package Dapper-NodaTime

In your project startup sequence somewhere, call:

DapperNodaTimeSetup.Register();

That registers all of the type handlers. Alternatively, you can register each type handler separately if you wish. For example:

SqlMapper.AddTypeHandler(LocalDateTimeHandler.Default);

Work in progress. Currently supports the following types:

  • Instant
  • LocalDateTime
  • LocalDate
  • LocalTime
  • OffsetDateTime

Does not yet support:

  • Duration
  • Period
  • Offset
  • ZonedDateTime
  • DateTimeZone

See also: DapperLib/Dapper#198