npgsql - Npgsql.EntityFrameworkCore.PostgreSQL 8.0.12-ci.20250304T103742+sha.0e0fcfb05

PostgreSQL/Npgsql provider for Entity Framework Core.

PM> Install-Package Npgsql.EntityFrameworkCore.PostgreSQL -Version 8.0.12-ci.20250304T103742 -Source https://www.myget.org/F/npgsql/api/v3/index.json

Copy to clipboard

> nuget.exe install Npgsql.EntityFrameworkCore.PostgreSQL -Version 8.0.12-ci.20250304T103742 -Source https://www.myget.org/F/npgsql/api/v3/index.json

Copy to clipboard

> dotnet add package Npgsql.EntityFrameworkCore.PostgreSQL --version 8.0.12-ci.20250304T103742 --source https://www.myget.org/F/npgsql/api/v3/index.json

Copy to clipboard
<PackageReference Include="Npgsql.EntityFrameworkCore.PostgreSQL" Version="8.0.12-ci.20250304T103742" />
Copy to clipboard
source https://www.myget.org/F/npgsql/api/v3/index.json

nuget Npgsql.EntityFrameworkCore.PostgreSQL  ~> 8.0.12-ci.20250304T103742
Copy to clipboard

> choco install Npgsql.EntityFrameworkCore.PostgreSQL --version 8.0.12-ci.20250304T103742 --source https://www.myget.org/F/npgsql/api/v2

Copy to clipboard
Import-Module PowerShellGet
Register-PSRepository -Name "npgsql" -SourceLocation "https://www.myget.org/F/npgsql/api/v2"
Install-Module -Name "Npgsql.EntityFrameworkCore.PostgreSQL" -RequiredVersion "8.0.12-ci.20250304T103742" -Repository "npgsql" -AllowPreRelease
Copy to clipboard

Browse the sources in this package using Visual Studio or WinDbg by configuring the following symbol server URL: https://www.myget.org/F/npgsql/api/v2/symbolpackage/


Npgsql Entity Framework Core provider for PostgreSQL

stable next patch daily builds (vnext) build gitter

Npgsql.EntityFrameworkCore.PostgreSQL is the open source EF Core provider for PostgreSQL. It allows you to interact with PostgreSQL via the most widely-used .NET O/RM from Microsoft, and use familiar LINQ syntax to express queries. It's built on top of Npgsql.

The provider looks and feels just like any other Entity Framework Core provider. Here's a quick sample to get you started:

await using var ctx = new BlogContext();
await ctx.Database.EnsureDeletedAsync();
await ctx.Database.EnsureCreatedAsync();

// Insert a Blog
ctx.Blogs.Add(new() { Name = "FooBlog" });
await ctx.SaveChangesAsync();

// Query all blogs who's name starts with F
var fBlogs = await ctx.Blogs.Where(b => b.Name.StartsWith("F")).ToListAsync();

public class BlogContext : DbContext
{
    public DbSet<Blog> Blogs { get; set; }

    protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
        => optionsBuilder.UseNpgsql(@"Host=myserver;Username=mylogin;Password=mypass;Database=mydatabase");
}

public class Blog
{
    public int Id { get; set; }
    public string Name { get; set; }
}

Aside from providing general EF Core support for PostgreSQL, the provider also exposes some PostgreSQL-specific capabilities, allowing you to query JSON, array or range columns, as well as many other advanced features. For more information, see the the Npgsql site. For information about EF Core in general, see the EF Core website.

Related packages

  • .NETFramework 8.0
    • Microsoft.EntityFrameworkCore (>= 8.0.11)
    • Microsoft.EntityFrameworkCore.Abstractions (>= 8.0.11)
    • Microsoft.EntityFrameworkCore.Relational (>= 8.0.11)
    • Npgsql (>= 8.0.6)
  • .NETFramework 8.0: 8.0.0.0

Owners

Shay Rojansky

Authors

Shay Rojansky, Austin Drenski, Yoh Deadfall

Project URL

https://github.com/npgsql/efcore.pg

License

MIT

Tags

npgsql postgresql postgres Entity Framework Core entity-framework-core ef efcore orm sql

Info

4162 total downloads
108 downloads for version 8.0.12-ci.20250304T103742+sha.0e0fcfb05
Download (302.17 KB)
Download symbols (86.5 KB)
Found on the current feed only

Package history

Version Size Last updated Downloads Mirrored?
10.0.3-ci.20260612T091430+sha.6547cdd44 331.5 KB Fri, 12 Jun 2026 09:14:51 GMT 0
10.0.3-ci.20260603T172101+sha.01c42737b 331.46 KB Wed, 03 Jun 2026 17:21:34 GMT 3
10.0.3-ci.20260527T160846+sha.e6d56b411 330.63 KB Wed, 27 May 2026 16:09:11 GMT 4
10.0.2-ci.20260426T112731+sha.7ce26dd25 330.7 KB Sun, 26 Apr 2026 11:27:55 GMT 13
10.0.2-ci.20260413T080623+sha.caeb33bfa 330.74 KB Mon, 13 Apr 2026 08:06:49 GMT 26
10.0.2-ci.20260402T165213+sha.a3602442c 330.73 KB Thu, 02 Apr 2026 16:52:37 GMT 18
10.0.2-ci.20260331T141331+sha.632d7fb2e 330.61 KB Tue, 31 Mar 2026 14:13:59 GMT 21
10.0.2-ci.20260323T164032+sha.12a1aa8ae 330.92 KB Mon, 23 Mar 2026 16:40:53 GMT 22
10.0.2-ci.20260312T183050+sha.cbb4bd719 330.92 KB Thu, 12 Mar 2026 18:31:14 GMT 26
10.0.1-ci.20260304T224947+sha.be797de9c 330.89 KB Wed, 04 Mar 2026 22:50:23 GMT 25
10.0.1-ci.20260222T132707+sha.7bae26552 330.88 KB Sun, 22 Feb 2026 13:27:31 GMT 21
10.0.1-ci.20260220T082538+sha.87ead6eed 330.86 KB Fri, 20 Feb 2026 08:26:01 GMT 30
10.0.1-ci.20260207T080513+sha.253d4aeda 330.75 KB Sat, 07 Feb 2026 08:05:39 GMT 29
10.0.1-ci.20251122T174547+sha.b452d2bdc 330.7 KB Sat, 22 Nov 2025 17:46:17 GMT 43
9.0.5-ci.20260503T183919+sha.c83ce3b0f 320.09 KB Sun, 03 May 2026 18:39:47 GMT 10
9.0.5-ci.20260304T225552+sha.2d853f169 319.98 KB Wed, 04 Mar 2026 22:56:25 GMT 25
9.0.5-ci.20251225T095038+sha.663e31a94 319.99 KB Thu, 25 Dec 2025 09:51:05 GMT 41
9.0.5-ci.20251224T151708+sha.ccc800cb8 319.98 KB Wed, 24 Dec 2025 15:17:36 GMT 39
9.0.5-ci.20251224T135339+sha.e08bbd15f 319.99 KB Wed, 24 Dec 2025 13:54:19 GMT 35
9.0.5-ci.20251030T090032+sha.36d55089c 320.02 KB Thu, 30 Oct 2025 09:01:06 GMT 64
9.0.5-ci.20251018T222213+sha.536141b48 320.13 KB Sat, 18 Oct 2025 22:22:44 GMT 71
9.0.5-ci.20250829T064328+sha.d7b16983b 320.08 KB Fri, 29 Aug 2025 06:43:58 GMT 103
9.0.5-ci.20250630T090754+sha.5014ee69d 320.05 KB Mon, 30 Jun 2025 09:08:28 GMT 132
9.0.5-ci.20250319T191227+sha.8e9228752 320.08 KB Wed, 19 Mar 2025 19:12:53 GMT 148
9.0.5-ci.20250315T090334+sha.6b93c10c7 320.08 KB Sat, 15 Mar 2025 09:04:04 GMT 135
9.0.5-ci.20250304T103330+sha.43e8b0b22 320.09 KB Tue, 04 Mar 2025 10:34:02 GMT 137
9.0.5-ci.20250301T080602+sha.ef1ce4055 320.09 KB Sat, 01 Mar 2025 08:06:28 GMT 114
9.0.4-ci.20250301T075750+sha.fd2380957 320.1 KB Sat, 01 Mar 2025 07:58:19 GMT 120
9.0.4-ci.20250301T073717+sha.80ec4ae3c 320.09 KB Sat, 01 Mar 2025 07:37:42 GMT 121
9.0.4-ci.20250228T161508+sha.4bf32483b 320.06 KB Fri, 28 Feb 2025 16:15:29 GMT 133
9.0.4-ci.20250228T160807+sha.9f4b73139 320.08 KB Fri, 28 Feb 2025 16:08:33 GMT 138
9.0.4-ci.20250228T150521+sha.0fdf784b1 320.06 KB Fri, 28 Feb 2025 15:05:48 GMT 140
9.0.4-ci.20250215T175844+sha.6a3445557 320.01 KB Sat, 15 Feb 2025 17:59:15 GMT 131
9.0.4-ci.20250214T235248+sha.e952c8477 320 KB Fri, 14 Feb 2025 23:53:08 GMT 139
9.0.4-ci.20250127T172728+sha.badb51eb4 319.89 KB Mon, 27 Jan 2025 17:27:48 GMT 143
9.0.4-ci.20250117T181329+sha.e4a74e796 319.89 KB Fri, 17 Jan 2025 18:13:52 GMT 133
9.0.3-ci.20241228T162036+sha.c240ce588 319.52 KB Sat, 28 Dec 2024 16:20:55 GMT 147
9.0.3-ci.20241207T181506+sha.e5e901e32 319.48 KB Sat, 07 Dec 2024 18:15:27 GMT 155
9.0.2-ci.20241207T180802+sha.697dd7182 319.49 KB Sat, 07 Dec 2024 18:08:26 GMT 152
9.0.2-ci.20241120T194418+sha.17e2fc83c 319.48 KB Wed, 20 Nov 2024 19:44:38 GMT 122
9.0.2-ci.20241119T122358+sha.051d00cbb 319.49 KB Tue, 19 Nov 2024 12:24:20 GMT 129
9.0.1-ci.20241119T121501+sha.2e9a27fa9 319.48 KB Tue, 19 Nov 2024 12:15:24 GMT 133
9.0.1-ci.20241119T115818+sha.2e9a27fa9 319.48 KB Tue, 19 Nov 2024 11:58:39 GMT 124
9.0.1-ci.20241118T154406+sha.7aa8be018 319.47 KB Mon, 18 Nov 2024 15:44:29 GMT 125
8.0.12-ci.20251225T095104+sha.a9845a46d 302.2 KB Thu, 25 Dec 2025 09:51:32 GMT 32
8.0.12-ci.20251030T091541+sha.3bb31090c 302.21 KB Thu, 30 Oct 2025 09:16:16 GMT 65
8.0.12-ci.20251018T222414+sha.28dfd7c7e 302.25 KB Sat, 18 Oct 2025 22:24:47 GMT 67
8.0.12-ci.20250319T190729+sha.403ea21c7 302.17 KB Wed, 19 Mar 2025 19:08:00 GMT 137
8.0.12-ci.20250304T103742+sha.0e0fcfb05 302.17 KB Tue, 04 Mar 2025 10:38:12 GMT 108
8.0.12-ci.20250228T162027+sha.9c747fd54 302.17 KB Fri, 28 Feb 2025 16:20:53 GMT 133