Npgsql.NodaTime
7.0.6
Prefix Reserved
See the version list below for details.
dotnet add package Npgsql.NodaTime --version 7.0.6
NuGet\Install-Package Npgsql.NodaTime -Version 7.0.6
<PackageReference Include="Npgsql.NodaTime" Version="7.0.6" />
paket add Npgsql.NodaTime --version 7.0.6
#r "nuget: Npgsql.NodaTime, 7.0.6"
// Install Npgsql.NodaTime as a Cake Addin #addin nuget:?package=Npgsql.NodaTime&version=7.0.6 // Install Npgsql.NodaTime as a Cake Tool #tool nuget:?package=Npgsql.NodaTime&version=7.0.6
Npgsql is the open source .NET data provider for PostgreSQL. It allows you to connect and interact with PostgreSQL server using .NET.
This package is an Npgsql plugin which allows you to use the NodaTime date/time library when interacting with PostgreSQL; this provides a better and safer API for dealing with date and time data.
To use the NodaTime plugin, simply add a dependency on this package and set it up at program startup:
NpgsqlConnection.GlobalTypeMapper.UseNodaTime();
Once this is done, you can simply use NodaTime types when interacting with PostgreSQL, just as you would use e.g. DateTime
:
// Write NodaTime Instant to PostgreSQL "timestamp with time zone" (UTC)
using (var cmd = new NpgsqlCommand(@"INSERT INTO mytable (my_timestamptz) VALUES (@p)", conn))
{
cmd.Parameters.Add(new NpgsqlParameter("p", Instant.FromUtc(2011, 1, 1, 10, 30)));
cmd.ExecuteNonQuery();
}
// Read timestamp back from the database as an Instant
using (var cmd = new NpgsqlCommand(@"SELECT my_timestamptz FROM mytable", conn))
using (var reader = cmd.ExecuteReader())
{
reader.Read();
var instant = reader.GetFieldValue<Instant>(0);
}
For more information, visit the NodaTime plugin documentation page.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
NuGet packages (15)
Showing the top 5 NuGet packages that depend on Npgsql.NodaTime:
Package | Downloads |
---|---|
Npgsql.EntityFrameworkCore.PostgreSQL.NodaTime
NodaTime support plugin for PostgreSQL/Npgsql Entity Framework Core provider. |
|
Marten.NodaTime
NodaTime extension for Marten |
|
Rocket.Surgery.Extensions.Marten
Package Description |
|
PostgreSQLCopyHelper.NodaTime
A library for Bulk Copy / Bulk Inserts with PostgreSQL. |
|
NSSL.Deviax.QueryBuilder.Postgres
SQL DSL / Micro ORM - PostgreSQL Driver |
GitHub repositories (5)
Showing the top 5 popular GitHub repositories that depend on Npgsql.NodaTime:
Repository | Stars |
---|---|
JasperFx/marten
.NET Transactional Document DB and Event Store on PostgreSQL
|
|
npgsql/efcore.pg
Entity Framework Core provider for PostgreSQL
|
|
PluralKit/PluralKit
|
|
PostgreSQLCopyHelper/PostgreSQLCopyHelper
Simple Wrapper around Npgsql for using PostgreSQL COPY functions.
|
|
NosCoreIO/NosCore
NosCore is a Nostale emulator in c# (.Net 8) using DotNetty / Entity Framework / WebAPI / Autofac / Mapster / Serilog
|
Version | Downloads | Last updated |
---|---|---|
9.0.1 | 0 | 11/19/2024 |
9.0.0 | 620 | 11/18/2024 |
8.0.6 | 385 | 11/18/2024 |
8.0.5 | 84,722 | 10/13/2024 |
8.0.4 | 90,935 | 9/10/2024 |
8.0.3 | 633,600 | 5/9/2024 |
8.0.2 | 283,870 | 2/10/2024 |
8.0.1 | 58,502 | 12/4/2023 |
8.0.0 | 286,573 | 11/21/2023 |
8.0.0-rtm | 120 | 11/20/2023 |
8.0.0-rc.2 | 13,627 | 10/11/2023 |
8.0.0-preview.4 | 8,808 | 5/17/2023 |
8.0.0-preview.3 | 404 | 4/24/2023 |
8.0.0-preview.2 | 497 | 3/20/2023 |
8.0.0-preview.1 | 600 | 3/3/2023 |
7.0.9 | 37 | 11/18/2024 |
7.0.8 | 1,359 | 9/10/2024 |
7.0.7 | 27,875 | 5/9/2024 |
7.0.6 | 384,199 | 9/14/2023 |
7.0.4 | 497,411 | 4/24/2023 |
7.0.2 | 469,384 | 2/15/2023 |
7.0.1 | 346,280 | 12/17/2022 |
7.0.0 | 84,424 | 11/9/2022 |
7.0.0-rc.2 | 3,951 | 10/11/2022 |
7.0.0-rc.1 | 1,071 | 9/16/2022 |
7.0.0-preview.7 | 2,346 | 8/9/2022 |
7.0.0-preview.6 | 849 | 7/13/2022 |
7.0.0-preview.5 | 618 | 6/19/2022 |
7.0.0-preview.4 | 896 | 5/11/2022 |
7.0.0-preview.3 | 723 | 4/19/2022 |
7.0.0-preview.2 | 515 | 3/16/2022 |
7.0.0-preview.1 | 508 | 2/17/2022 |
6.0.13 | 39 | 11/18/2024 |
6.0.12 | 3,172 | 9/10/2024 |
6.0.11 | 32,965 | 5/9/2024 |
6.0.10 | 76,258 | 9/14/2023 |
6.0.9 | 105,060 | 2/15/2023 |
6.0.8 | 240,074 | 12/17/2022 |
6.0.7 | 364,734 | 9/16/2022 |
6.0.6 | 470,364 | 8/4/2022 |
6.0.5 | 222,541 | 6/19/2022 |
6.0.4 | 336,404 | 4/19/2022 |
6.0.3 | 384,099 | 1/27/2022 |
6.0.2 | 255,493 | 12/20/2021 |
6.0.1 | 304,430 | 12/3/2021 |
6.0.0 | 102,189 | 11/9/2021 |
6.0.0-rc.2 | 1,418 | 10/14/2021 |
6.0.0-rc.1 | 1,416 | 9/24/2021 |
6.0.0-preview7 | 2,353 | 8/16/2021 |
6.0.0-preview6 | 800 | 7/31/2021 |
6.0.0-preview5 | 1,490 | 7/1/2021 |
6.0.0-preview4 | 850 | 5/27/2021 |
6.0.0-preview3 | 835 | 4/15/2021 |
6.0.0-preview2 | 13,416 | 3/11/2021 |
5.0.18 | 430 | 5/9/2024 |
5.0.17 | 683 | 9/14/2023 |
5.0.16 | 422 | 2/15/2023 |
5.0.15 | 614 | 9/16/2022 |
5.0.14 | 1,203 | 6/19/2022 |
5.0.13 | 957 | 4/26/2022 |
5.0.12 | 17,140 | 2/1/2022 |
5.0.11 | 68,304 | 11/12/2021 |
5.0.10 | 324,754 | 9/15/2021 |
5.0.7 | 305,192 | 6/13/2021 |
5.0.5 | 92,409 | 5/11/2021 |
5.0.4 | 253,996 | 3/25/2021 |
5.0.3 | 148,635 | 1/26/2021 |
5.0.2 | 202,721 | 1/19/2021 |
5.0.1.1 | 64,888 | 12/12/2020 |
5.0.0 | 33,584 | 11/15/2020 |
5.0.0-preview1.1 | 4,448 | 10/13/2020 |
5.0.0-alpha1 | 655 | 6/17/2020 |
4.1.14 | 186 | 5/18/2024 |
4.1.13 | 139 | 5/9/2024 |
4.1.12 | 3,474 | 6/19/2022 |
4.1.11 | 975 | 4/26/2022 |
4.1.9 | 68,166 | 4/6/2021 |
4.1.8 | 77,414 | 1/21/2021 |
4.1.7 | 1,280 | 12/12/2020 |
4.1.6 | 165,903 | 11/15/2020 |
4.1.5 | 89,400 | 9/28/2020 |
4.1.4 | 149,381 | 7/19/2020 |
4.1.3 | 429,272 | 1/31/2020 |
4.1.2 | 104,005 | 11/14/2019 |
4.1.1 | 56,632 | 10/2/2019 |
4.1.0 | 9,865 | 9/26/2019 |
4.1.0-preview2 | 2,828 | 9/4/2019 |
4.1.0-preview1 | 1,394 | 8/15/2019 |
4.0.17 | 155 | 6/10/2024 |
4.0.16 | 118 | 5/18/2024 |
4.0.15 | 111 | 5/18/2024 |
4.0.14 | 116 | 5/9/2024 |
4.0.13 | 501 | 6/19/2022 |
4.0.11 | 598 | 7/19/2020 |
4.0.10 | 39,199 | 9/9/2019 |
4.0.9 | 10,978 | 8/14/2019 |
4.0.8 | 2,507 | 7/18/2019 |
4.0.7 | 127,966 | 5/21/2019 |
4.0.6 | 2,166 | 4/11/2019 |
4.0.5 | 11,789 | 3/3/2019 |
4.0.4 | 69,012 | 12/6/2018 |
1.0.0 | 191,602 | 5/30/2018 |
1.0.0-rc1 | 1,641 | 5/8/2018 |
1.0.0-preview1 | 2,924 | 3/22/2018 |