Skip to content

Noda Time support for Dapper

License

Notifications You must be signed in to change notification settings

LogicSoftInd/Dapper-NodaTime

 
 

Repository files navigation

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

About

Noda Time support for Dapper

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 100.0%