npgsql - Npgsql.EntityFrameworkCore.PostgreSQL.NetTopologySuite 8.0.5-ci.20240628T141536+sha.aec0d1f72

NetTopologySuite PostGIS spatial support plugin for PostgreSQL/Npgsql Entity Framework Core provider.

PM> Install-Package Npgsql.EntityFrameworkCore.PostgreSQL.NetTopologySuite -Version 8.0.5-ci.20240628T141536 -Source https://www.myget.org/F/npgsql/api/v3/index.json

Copy to clipboard

> nuget.exe install Npgsql.EntityFrameworkCore.PostgreSQL.NetTopologySuite -Version 8.0.5-ci.20240628T141536 -Source https://www.myget.org/F/npgsql/api/v3/index.json

Copy to clipboard

> dotnet add package Npgsql.EntityFrameworkCore.PostgreSQL.NetTopologySuite --version 8.0.5-ci.20240628T141536 --source https://www.myget.org/F/npgsql/api/v3/index.json

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

nuget Npgsql.EntityFrameworkCore.PostgreSQL.NetTopologySuite  ~> 8.0.5-ci.20240628T141536
Copy to clipboard

> choco install Npgsql.EntityFrameworkCore.PostgreSQL.NetTopologySuite --version 8.0.5-ci.20240628T141536 --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.NetTopologySuite" -RequiredVersion "8.0.5-ci.20240628T141536" -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
    • Npgsql.EntityFrameworkCore.PostgreSQL (>= 8.0.5-ci.20240628T141536)
    • Npgsql.NetTopologySuite (>= 8.0.3)
  • .NETFramework 8.0: 8.0.0.0
  • .NETStandard 2.0: 2.0.0.0

Owners

Shay Rojansky

Authors

Shay Rojansky

Project URL

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

License

MIT

Tags

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

Info

121 total downloads
2 downloads for version 8.0.5-ci.20240628T141536+sha.aec0d1f72
Download (44.89 KB)
Download symbols (16.72 KB)
Found on the current feed only

Package history

Version Size Last updated Downloads Mirrored?
10.0.1-ci.20251122T174547+sha.b452d2bdc 48.63 KB Sat, 22 Nov 2025 17:46:14 GMT 0
9.0.5-ci.20251030T090032+sha.36d55089c 48.32 KB Thu, 30 Oct 2025 09:01:02 GMT 0
9.0.5-ci.20251018T222213+sha.536141b48 48.3 KB Sat, 18 Oct 2025 22:22:42 GMT 1
9.0.5-ci.20250829T064328+sha.d7b16983b 48.31 KB Fri, 29 Aug 2025 06:44:03 GMT 2
9.0.5-ci.20250630T090754+sha.5014ee69d 48.31 KB Mon, 30 Jun 2025 09:08:26 GMT 1
9.0.5-ci.20250319T191227+sha.8e9228752 48.31 KB Wed, 19 Mar 2025 19:12:54 GMT 3
9.0.5-ci.20250315T090334+sha.6b93c10c7 48.31 KB Sat, 15 Mar 2025 09:04:02 GMT 2
9.0.5-ci.20250304T103330+sha.43e8b0b22 48.32 KB Tue, 04 Mar 2025 10:34:00 GMT 2
9.0.5-ci.20250301T080602+sha.ef1ce4055 48.31 KB Sat, 01 Mar 2025 08:06:27 GMT 2
9.0.4-ci.20250301T075750+sha.fd2380957 48.32 KB Sat, 01 Mar 2025 07:58:20 GMT 3
9.0.4-ci.20250301T073717+sha.80ec4ae3c 48.31 KB Sat, 01 Mar 2025 07:37:41 GMT 3
9.0.4-ci.20250228T161508+sha.4bf32483b 48.31 KB Fri, 28 Feb 2025 16:15:31 GMT 3
9.0.4-ci.20250228T160807+sha.9f4b73139 48.32 KB Fri, 28 Feb 2025 16:08:34 GMT 3
9.0.4-ci.20250228T150521+sha.0fdf784b1 48.32 KB Fri, 28 Feb 2025 15:05:46 GMT 2
9.0.4-ci.20250215T175844+sha.6a3445557 48.29 KB Sat, 15 Feb 2025 17:59:12 GMT 2
9.0.4-ci.20250214T235248+sha.e952c8477 48.28 KB Fri, 14 Feb 2025 23:53:09 GMT 2
9.0.4-ci.20250127T172728+sha.badb51eb4 48.29 KB Mon, 27 Jan 2025 17:27:47 GMT 2
9.0.4-ci.20250117T181329+sha.e4a74e796 48.29 KB Fri, 17 Jan 2025 18:13:54 GMT 3
9.0.3-ci.20241228T162036+sha.c240ce588 48.27 KB Sat, 28 Dec 2024 16:20:57 GMT 3
9.0.3-ci.20241207T181506+sha.e5e901e32 48.28 KB Sat, 07 Dec 2024 18:15:28 GMT 3
9.0.2-ci.20241207T180802+sha.697dd7182 48.27 KB Sat, 07 Dec 2024 18:08:25 GMT 3
9.0.2-ci.20241120T194418+sha.17e2fc83c 48.27 KB Wed, 20 Nov 2024 19:44:35 GMT 2
9.0.2-ci.20241119T122358+sha.051d00cbb 48.27 KB Tue, 19 Nov 2024 12:24:21 GMT 3
9.0.1-ci.20241119T121501+sha.2e9a27fa9 48.27 KB Tue, 19 Nov 2024 12:15:22 GMT 2
9.0.1-ci.20241119T115818+sha.2e9a27fa9 48.26 KB Tue, 19 Nov 2024 11:58:40 GMT 3
9.0.1-ci.20241118T154406+sha.7aa8be018 48.27 KB Mon, 18 Nov 2024 15:44:27 GMT 2
8.0.12-ci.20251030T091541+sha.3bb31090c 44.89 KB Thu, 30 Oct 2025 09:16:14 GMT 0
8.0.12-ci.20251018T222414+sha.28dfd7c7e 44.89 KB Sat, 18 Oct 2025 22:24:48 GMT 1
8.0.12-ci.20250319T190729+sha.403ea21c7 44.89 KB Wed, 19 Mar 2025 19:08:01 GMT 4
8.0.12-ci.20250304T103742+sha.0e0fcfb05 44.89 KB Tue, 04 Mar 2025 10:38:13 GMT 2
8.0.12-ci.20250228T162027+sha.9c747fd54 44.89 KB Fri, 28 Feb 2025 16:20:53 GMT 3
8.0.12-ci.20250215T175819+sha.e46e43e01 44.89 KB Sat, 15 Feb 2025 17:58:41 GMT 3
8.0.12-ci.20250127T174018+sha.77493069e 44.89 KB Mon, 27 Jan 2025 17:41:08 GMT 3
8.0.12-ci.20241118T173708+sha.38b9ef7a1 44.89 KB Mon, 18 Nov 2024 17:37:40 GMT 3
8.0.11-ci.20241106T154257+sha.157ea2efb 44.88 KB Wed, 06 Nov 2024 15:43:25 GMT 3
8.0.11-ci.20241105T160321+sha.e38ff7bee 44.88 KB Tue, 05 Nov 2024 16:04:01 GMT 2
8.0.11-ci.20241105T125658+sha.eaafa4457 44.88 KB Tue, 05 Nov 2024 12:57:21 GMT 2
8.0.11-ci.20241031T151546+sha.57167f600 44.88 KB Thu, 31 Oct 2024 15:16:07 GMT 2
8.0.11-ci.20241031T112840+sha.8a2dc0c3c 44.87 KB Thu, 31 Oct 2024 11:29:13 GMT 3
8.0.11-ci.20241029T164005+sha.52e427f62 44.88 KB Tue, 29 Oct 2024 16:40:25 GMT 3
8.0.11-ci.20241017T183438+sha.15ce73ebc 44.88 KB Thu, 17 Oct 2024 18:35:09 GMT 3
8.0.8-ci.20240926T223439+sha.55dd99eca 44.88 KB Thu, 26 Sep 2024 22:35:08 GMT 5
8.0.5-ci.20240628T141536+sha.aec0d1f72 44.89 KB Fri, 28 Jun 2024 14:16:06 GMT 2
8.0.5-ci.20240623T224824+sha.8a4c25b3a 44.88 KB Sun, 23 Jun 2024 22:48:42 GMT 2
8.0.5-ci.20240608T214859+sha.1292512a4 44.89 KB Sat, 08 Jun 2024 21:49:23 GMT 3
8.0.5-ci.20240511T161926+sha.a2ce3ee08 44.88 KB Sat, 11 May 2024 16:19:52 GMT 4
8.0.4-ci.20240511T154954+sha.51faf6e9c 44.88 KB Sat, 11 May 2024 15:50:22 GMT 2
8.0.3-ci.20240225T001127+sha.f280bb70e 44.88 KB Sun, 25 Feb 2024 00:11:57 GMT 3
8.0.3-ci.20240217T202149+sha.468c8be1f 44.88 KB Sat, 17 Feb 2024 20:22:16 GMT 2
8.0.1-ci.20240105T091620+sha.bbcdde68d 44.88 KB Fri, 05 Jan 2024 09:16:52 GMT 4