Npgsql.EntityFrameworkCore.PostgreSQL.NetTopologySuite 9.0.4

Prefix Reserved
There is a newer prerelease version of this package available.
See the version list below for details.
dotnet add package Npgsql.EntityFrameworkCore.PostgreSQL.NetTopologySuite --version 9.0.4
NuGet\Install-Package Npgsql.EntityFrameworkCore.PostgreSQL.NetTopologySuite -Version 9.0.4
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version ofInstall-Package.
<PackageReference Include="Npgsql.EntityFrameworkCore.PostgreSQL.NetTopologySuite" Version="9.0.4" />
For projects that supportPackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Npgsql.EntityFrameworkCore.PostgreSQL.NetTopologySuite" Version="9.0.4" />
Directory.Packages.props
<PackageReference Include="Npgsql.EntityFrameworkCore.PostgreSQL.NetTopologySuite" />
Project file
For projects that supportCentral Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Npgsql.EntityFrameworkCore.PostgreSQL.NetTopologySuite --version 9.0.4
The NuGet Team does not provide support for this client. Please contact itsmaintainers for support.
#r "nuget: Npgsql.EntityFrameworkCore.PostgreSQL.NetTopologySuite, 9.0.4"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Npgsql.EntityFrameworkCore.PostgreSQL.NetTopologySuite@9.0.4
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Npgsql.EntityFrameworkCore.PostgreSQL.NetTopologySuite&version=9.0.4
Install as a Cake Addin
#tool nuget:?package=Npgsql.EntityFrameworkCore.PostgreSQL.NetTopologySuite&version=9.0.4
Install as a Cake Tool
The NuGet Team does not provide support for this client. Please contact itsmaintainers for support.

Npgsql Entity Framework Core provider for PostgreSQL

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.

This package is a plugin which allows you to interact with spatial data provided by the PostgreSQLPostGIS extension; PostGIS is a mature, standard extension considered to provide top-of-the-line database spatial features. On the .NET side, the plugin adds support for the types from theNetTopologySuite library, allowing you to read and write them directly to PostgreSQL.

To use the plugin, simply addUseNetTopologySuite as below and use NetTopologySuite types in your entity properties:

await using var ctx = new BlogContext();await ctx.Database.EnsureDeletedAsync();await ctx.Database.EnsureCreatedAsync();// Insert a Blogctx.Cities.Add(new(){    Name = "FooCity",    Center = new Point(10, 10)});await ctx.SaveChangesAsync();// Query all cities with the given center pointvar newBlogs = await ctx.Cities.Where(b => b.Center == new Point(10, 10)).ToListAsync();public class BlogContext : DbContext{    public DbSet<City> Cities { get; set; }    protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)        => optionsBuilder.UseNpgsql(            @"Host=myserver;Username=mylogin;Password=mypass;Database=mydatabase",            o => o.UseNetTopologySuite());}public class City{    public int Id { get; set; }    public string Name { get; set; }    public Point Center { get; set; }}

The plugin also supports translating many NetTopologySuite methods and properties into corresponding PostGIS operations. For more information, see theNetTopologySuite plugin documentation page.

ProductCompatible and additional computed target framework versions.
.NETnet5.0 was computed. net5.0-windows was computed. net6.0 was computed. 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 is compatible. 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. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. 
.NET Corenetcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. 
.NET Standardnetstandard2.0 is compatible. netstandard2.1 was computed. 
.NET Frameworknet461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. 
MonoAndroidmonoandroid was computed. 
MonoMacmonomac was computed. 
MonoTouchmonotouch was computed. 
Tizentizen40 was computed. tizen60 was computed. 
Xamarin.iOSxamarinios was computed. 
Xamarin.Macxamarinmac was computed. 
Xamarin.TVOSxamarintvos was computed. 
Xamarin.WatchOSxamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more aboutTarget Frameworks and.NET Standard.

NuGet packages (36)

Showing the top 5 NuGet packages that depend on Npgsql.EntityFrameworkCore.PostgreSQL.NetTopologySuite:

PackageDownloads
CoreMore

Package Description

EFCore.Sharding.PostgreSql

Package Description

NeuroSpeech.EFCoreLiveMigration.PostGreSql

Package Description

SER.Graphql.Reflection.NetCore

This is a complement to graphql-dotnet (https://github.com/graphql-dotnet/graphql-dotnet) to avoid boilerplate

EntityFrameworkCore.Generator.Core

.NET Core command-line (CLI) tool to generate Entity Framework Core source files.

GitHub repositories (10)

Showing the top 10 popular GitHub repositories that depend on Npgsql.EntityFrameworkCore.PostgreSQL.NetTopologySuite:

RepositoryStars
ChilliCream/graphql-platform
Welcome to the home of the Hot Chocolate GraphQL server for .NET, the Strawberry Shake GraphQL client for .NET and Nitro the awesome Monaco based GraphQL IDE.
borisdj/EFCore.BulkExtensions
Entity Framework EF Core efcore Bulk Batch Extensions with BulkCopy in .Net for Insert Update Delete Read (CRUD), Truncate and SaveChanges operations on SQL Server, PostgreSQL, MySQL, SQLite, Oracle
Squidex/squidex
Headless CMS and Content Managment Hub
ErikEJ/EFCorePowerTools
Entity Framework Core Power Tools - reverse engineering, migrations and model visualization in Visual Studio & CLI
abpframework/abp-samples
Sample solutions built with the ABP Framework
Coldairarrow/EFCore.Sharding
Database Sharding For EFCore
loresoft/EntityFrameworkCore.Generator
Generate Entity Framework Core model from an existing database
zLulus/NotePractice
My_Note 笔记练习demo
shinyorg/templates
dotnet CLI & Visual Studio Templates
PhenX/PhenX.EntityFrameworkCore.BulkInsert
Super fast bulk insertion for Entity Framework Core on SQL Server, PostgreSQL, Sqlite, MySQL and Oracle
VersionDownloads Last Updated
10.0.0-rc.1 3,7559/10/2025
10.0.0-preview.7 1,1068/17/2025
10.0.0-preview.5 3,5636/11/2025
10.0.0-preview.3 7344/12/2025
10.0.0-preview.2 4553/24/2025
10.0.0-preview.1 1643/1/2025
9.0.4 663,0223/1/2025
9.0.3 205,8321/17/2025
9.0.2 144,95712/7/2024
9.0.1 92,51311/19/2024
9.0.0 16,61411/18/2024
9.0.0-rc.2 8,47010/13/2024
9.0.0-rc.1 2,9109/13/2024
9.0.0-preview.7 2479/1/2024
9.0.0-preview.3 7,9394/12/2024
9.0.0-preview.2 1783/22/2024
9.0.0-preview.1 6682/14/2024
8.0.11 453,45911/18/2024
8.0.10 365,05510/17/2024
8.0.8 137,1599/27/2024
8.0.4 1,070,7415/11/2024
8.0.2 471,1442/17/2024
8.0.0 517,36011/21/2023
8.0.0-rc.2 15,25310/11/2023
8.0.0-rc.1 3,5629/14/2023
8.0.0-preview.7 6,1838/18/2023
8.0.0-preview.4 7,3195/20/2023
8.0.0-preview.3 7734/24/2023
8.0.0-preview.2 5603/20/2023
8.0.0-preview.1 6003/3/2023
7.0.18 68,2255/11/2024
7.0.11 304,0999/15/2023
7.0.4 455,9344/24/2023
7.0.3 1,382,3832/15/2023
7.0.1 194,48012/17/2022
7.0.0 177,52411/9/2022
7.0.0-rc.2 2,20910/11/2022
7.0.0-rc.1 5819/16/2022
7.0.0-preview.7 1,5658/9/2022
7.0.0-preview.6 1,6237/13/2022
7.0.0-preview.5 2,5916/19/2022
7.0.0-preview.4 1,9855/11/2022
7.0.0-preview.3 4944/19/2022
7.0.0-preview.2 4753/16/2022
7.0.0-preview.1 3412/17/2022
6.0.29 68,5145/11/2024
6.0.22 91,2579/15/2023
6.0.8 489,61512/17/2022
6.0.7 673,9189/16/2022
6.0.6 213,4818/4/2022
6.0.5 185,3906/19/2022
6.0.4 283,4994/19/2022
6.0.3 600,0411/27/2022
6.0.2 166,16012/22/2021
6.0.1 35,93612/3/2021
6.0.0 271,99711/9/2021
6.0.0-rc.2 11,48110/14/2021
6.0.0-rc.1 1,1639/24/2021
6.0.0-preview7 1,8338/16/2021
6.0.0-preview6 5387/31/2021
6.0.0-preview5 6307/1/2021
6.0.0-preview4 6205/27/2021
6.0.0-preview3 8,5204/15/2021
6.0.0-preview2 6313/11/2021
6.0.0-preview1 6222/16/2021
5.0.10 276,2419/15/2021
5.0.7 300,2906/13/2021
5.0.6 179,7145/11/2021
5.0.5.1 43,7074/21/2021
5.0.5 18,1974/16/2021
5.0.2 192,4471/19/2021
5.0.1 45,83212/12/2020
5.0.0 78,89111/15/2020
5.0.0-rc2 6,11210/15/2020
5.0.0-rc1 4,3319/14/2020
5.0.0-preview8 6418/27/2020
5.0.0-preview7 1,8047/22/2020
5.0.0-preview6 1,2256/26/2020
5.0.0-preview5 6276/11/2020
5.0.0-preview4 7225/19/2020
5.0.0-preview3 9374/24/2020
5.0.0-preview2 7394/2/2020
5.0.0-preview.2.20120.8 8103/20/2020
3.1.18 76,3288/27/2021
3.1.11 117,2891/21/2021
3.1.4 404,2385/29/2020
3.1.3 144,8353/26/2020
3.1.2 69,0372/20/2020
3.1.1 51,6481/31/2020
3.1.0 34,34612/4/2019
3.1.0-preview3 70511/15/2019
3.1.0-preview2 66411/6/2019
3.0.1 17,75510/2/2019
3.0.0 4,6189/26/2019
3.0.0-preview9 9439/4/2019
3.0.0-preview5 1,7275/6/2019
3.0.0-preview4 7204/21/2019
3.0.0-preview3 8423/12/2019
3.0.0-preview1 1,13212/16/2018
2.2.4 143,9145/21/2019
2.2.0 149,88712/7/2018
2.1.1 58,6547/21/2018
2.1.0 36,9625/31/2018
2.1.0-rc1 1,1585/8/2018
Downloads
Total12.4M
Current version663.0K
Per day average4.6K
About
Owners

npgsqlpostgresqlpostgresEntityFrameworkCoreentity-framework-coreefefcoreormsqlspatialpostgisnts

Copyright 2024 © The Npgsql Development Team

Share this package on FacebookShare this package on XUse the Atom feed to subscribe to new versions of Npgsql.EntityFrameworkCore.PostgreSQL.NetTopologySuite