npgsql-vnext - Npgsql.EntityFrameworkCore.PostgreSQL 9.0.0-rc.2-ci.20241114T135851+sha.74d8a51ea

PostgreSQL/Npgsql provider for Entity Framework Core.

PM> Install-Package Npgsql.EntityFrameworkCore.PostgreSQL -Version 9.0.0-rc.2-ci.20241114T135851 -Source https://www.myget.org/F/npgsql-vnext/api/v3/index.json

Copy to clipboard

> nuget.exe install Npgsql.EntityFrameworkCore.PostgreSQL -Version 9.0.0-rc.2-ci.20241114T135851 -Source https://www.myget.org/F/npgsql-vnext/api/v3/index.json

Copy to clipboard

> dotnet add package Npgsql.EntityFrameworkCore.PostgreSQL --version 9.0.0-rc.2-ci.20241114T135851 --source https://www.myget.org/F/npgsql-vnext/api/v3/index.json

Copy to clipboard
<PackageReference Include="Npgsql.EntityFrameworkCore.PostgreSQL" Version="9.0.0-rc.2-ci.20241114T135851" />
Copy to clipboard
source https://www.myget.org/F/npgsql-vnext/api/v3/index.json

nuget Npgsql.EntityFrameworkCore.PostgreSQL  ~> 9.0.0-rc.2-ci.20241114T135851
Copy to clipboard

> choco install Npgsql.EntityFrameworkCore.PostgreSQL --version 9.0.0-rc.2-ci.20241114T135851 --source https://www.myget.org/F/npgsql-vnext/api/v2

Copy to clipboard
Import-Module PowerShellGet
Register-PSRepository -Name "npgsql-vnext" -SourceLocation "https://www.myget.org/F/npgsql-vnext/api/v2"
Install-Module -Name "Npgsql.EntityFrameworkCore.PostgreSQL" -RequiredVersion "9.0.0-rc.2-ci.20241114T135851" -Repository "npgsql-vnext" -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-vnext/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 (>= 9.0.0 && < 10.0.0)
    • Microsoft.EntityFrameworkCore.Relational (>= 9.0.0 && < 10.0.0)
    • Npgsql (>= 9.0.0-preview.1-ci.20241028T080028)
  • .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

Unknown

Tags

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

Info

196 total downloads
5 downloads for version 9.0.0-rc.2-ci.20241114T135851+sha.74d8a51ea
Download (319.12 KB)
Download symbols (90.67 KB)
Found on the current feed only

Package history

Version Size Last updated Downloads Mirrored?
10.0.0-preview.3-ci.20250319T191616+sha.908e207cf 320.67 KB Wed, 19 Mar 2025 19:16:38 GMT 0
10.0.0-preview.3-ci.20250317T141353+sha.3ef99f34e 320.67 KB Mon, 17 Mar 2025 14:14:15 GMT 1
10.0.0-preview.2-ci.20250317T142010+sha.b211e4d27 320.68 KB Mon, 17 Mar 2025 14:20:31 GMT 1
10.0.0-preview.2-ci.20250317T124628+sha.b211e4d27 320.68 KB Mon, 17 Mar 2025 12:46:50 GMT 1
10.0.0-preview.2-ci.20250317T103639+sha.e781756c3 320.68 KB Mon, 17 Mar 2025 10:36:59 GMT 1
10.0.0-preview.2-ci.20250317T095220+sha.93e55dde6 320.67 KB Mon, 17 Mar 2025 09:52:40 GMT 1
10.0.0-preview.2-ci.20250315T085447+sha.51fad9cc4 320.67 KB Sat, 15 Mar 2025 08:55:07 GMT 1
10.0.0-preview.2-ci.20250304T090731+sha.86e994885 320.68 KB Tue, 04 Mar 2025 09:07:53 GMT 1
10.0.0-preview.2-ci.20250301T173556+sha.eb91c3ddc 320.68 KB Sat, 01 Mar 2025 17:36:18 GMT 2
10.0.0-ci.20250301T073103+sha.0db010c8d 320.65 KB Sat, 01 Mar 2025 07:31:25 GMT 2
10.0.0-ci.20250228T161128+sha.e327d6bcc 320.66 KB Fri, 28 Feb 2025 16:11:49 GMT 2
10.0.0-ci.20250228T154552+sha.a6b55b54f 320.67 KB Fri, 28 Feb 2025 15:46:14 GMT 2
10.0.0-ci.20250228T145545+sha.0212cae5c 320.63 KB Fri, 28 Feb 2025 14:56:06 GMT 2
10.0.0-ci.20250215T175036+sha.786b635d9 320.65 KB Sat, 15 Feb 2025 17:50:58 GMT 2
10.0.0-ci.20250214T234741+sha.3cbdba452 320.62 KB Fri, 14 Feb 2025 23:48:03 GMT 2
10.0.0-ci.20250204T134547+sha.85cd0aa93 320.51 KB Tue, 04 Feb 2025 13:46:08 GMT 2
10.0.0-ci.20250204T130724+sha.352306a6a 320.5 KB Tue, 04 Feb 2025 13:07:44 GMT 2
10.0.0-ci.20250204T125940+sha.352306a6a 320.49 KB Tue, 04 Feb 2025 13:00:06 GMT 1
10.0.0-ci.20250127T165943+sha.83f2cc37d 320.5 KB Mon, 27 Jan 2025 17:00:04 GMT 1
10.0.0-ci.20250127T164519+sha.91101a3c7 320.5 KB Mon, 27 Jan 2025 16:45:41 GMT 2
10.0.0-ci.20250120T140758+sha.44bdcfd81 320.5 KB Mon, 20 Jan 2025 14:08:19 GMT 2
10.0.0-ci.20250117T163649+sha.068a7c6b4 320.5 KB Fri, 17 Jan 2025 16:37:10 GMT 2
10.0.0-ci.20250112T093658+sha.49e4a86b3 320.22 KB Sun, 12 Jan 2025 09:37:19 GMT 3
10.0.0-ci.20241228T161324+sha.c2b3de42d 320.22 KB Sat, 28 Dec 2024 16:13:48 GMT 3
10.0.0-ci.20241222T171031+sha.238d3842c 320.13 KB Sun, 22 Dec 2024 17:10:49 GMT 4
10.0.0-ci.20241222T161946+sha.5785b4086 320.14 KB Sun, 22 Dec 2024 16:20:07 GMT 3
10.0.0-ci.20241222T112914+sha.9cce84722 320.13 KB Sun, 22 Dec 2024 11:29:33 GMT 4
10.0.0-ci.20241222T103004+sha.174a0e3f5 320.14 KB Sun, 22 Dec 2024 10:30:25 GMT 5
10.0.0-ci.20241215T145814+sha.6068de43a 319.95 KB Sun, 15 Dec 2024 14:58:34 GMT 6
10.0.0-ci.20241215T130720+sha.af1116207 320.23 KB Sun, 15 Dec 2024 13:07:41 GMT 6
10.0.0-ci.20241215T100820+sha.ca0ba383c 320.22 KB Sun, 15 Dec 2024 10:08:41 GMT 5
10.0.0-ci.20241211T223538+sha.2397dd880 319.76 KB Wed, 11 Dec 2024 22:36:00 GMT 5
10.0.0-ci.20241120T172630+sha.c6fb5e21e 319.47 KB Wed, 20 Nov 2024 17:26:51 GMT 7
10.0.0-ci.20241119T113735+sha.773a330bf 319.47 KB Tue, 19 Nov 2024 11:37:57 GMT 8
10.0.0-ci.20241118T154814+sha.03f004daf 319.46 KB Mon, 18 Nov 2024 15:48:34 GMT 7
9.0.0-rc.2-ci.20241114T213942+sha.dd8e6302f 319.5 KB Thu, 14 Nov 2024 21:40:04 GMT 8
9.0.0-rc.2-ci.20241114T212006+sha.dd8e6302f 319.49 KB Thu, 14 Nov 2024 21:20:30 GMT 5
9.0.0-rc.2-ci.20241114T190152+sha.dd8e6302f 319.49 KB Thu, 14 Nov 2024 19:02:15 GMT 6
9.0.0-rc.2-ci.20241114T163442+sha.a4d67a11c 319.48 KB Thu, 14 Nov 2024 16:35:01 GMT 7
9.0.0-rc.2-ci.20241114T140713+sha.74d8a51ea 319.12 KB Thu, 14 Nov 2024 14:07:35 GMT 8
9.0.0-rc.2-ci.20241114T135851+sha.74d8a51ea 319.12 KB Thu, 14 Nov 2024 13:59:14 GMT 5
9.0.0-rc.2-ci.20241106T153535+sha.b875f5d1c 319.13 KB Wed, 06 Nov 2024 15:35:59 GMT 6
9.0.0-rc.2-ci.20241105T155516+sha.eca01842f 319.13 KB Tue, 05 Nov 2024 15:55:43 GMT 6
9.0.0-rc.2-ci.20241105T124753+sha.ff8513a35 321.65 KB Tue, 05 Nov 2024 12:48:16 GMT 5
9.0.0-rc.2-ci.20241029T215709+sha.e4375aada 321.46 KB Tue, 29 Oct 2024 21:57:30 GMT 7
9.0.0-rc.2-ci.20241029T163141+sha.45c822781 321.55 KB Tue, 29 Oct 2024 16:32:01 GMT 7
9.0.0-rc.2-ci.20241028T213132+sha.72cb52e7f 321.54 KB Mon, 28 Oct 2024 21:31:56 GMT 6
9.0.0-rc.2-ci.20241028T100256+sha.342c5606a 321.42 KB Mon, 28 Oct 2024 10:03:18 GMT 6
9.0.0-rc.2-ci.20241028T075218+sha.c484080ba 321.38 KB Mon, 28 Oct 2024 07:52:38 GMT 5
9.0.0-rc.2-ci.20240930T080442+sha.303ffc3bd 323.07 KB Mon, 30 Sep 2024 08:05:06 GMT 10