Npgsql.EntityFrameworkCore.PostgreSQL
7.0.3
See the version list below for details.
dotnet add package Npgsql.EntityFrameworkCore.PostgreSQL --version 7.0.3
NuGet\Install-Package Npgsql.EntityFrameworkCore.PostgreSQL -Version 7.0.3
<PackageReference Include="Npgsql.EntityFrameworkCore.PostgreSQL" Version="7.0.3" />
paket add Npgsql.EntityFrameworkCore.PostgreSQL --version 7.0.3
#r "nuget: Npgsql.EntityFrameworkCore.PostgreSQL, 7.0.3"
// Install Npgsql.EntityFrameworkCore.PostgreSQL as a Cake Addin
#addin nuget:?package=Npgsql.EntityFrameworkCore.PostgreSQL&version=7.0.3
// Install Npgsql.EntityFrameworkCore.PostgreSQL as a Cake Tool
#tool nuget:?package=Npgsql.EntityFrameworkCore.PostgreSQL&version=7.0.3
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. 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.
Product | Versions |
---|---|
.NET | net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows net7.0 net7.0-android net7.0-ios net7.0-maccatalyst net7.0-macos net7.0-tvos net7.0-windows |
-
net6.0
- Microsoft.EntityFrameworkCore (>= 7.0.3 && < 8.0.0)
- Microsoft.EntityFrameworkCore.Abstractions (>= 7.0.3 && < 8.0.0)
- Microsoft.EntityFrameworkCore.Relational (>= 7.0.3 && < 8.0.0)
- Npgsql (>= 7.0.2)
-
net7.0
- Microsoft.EntityFrameworkCore (>= 7.0.3 && < 8.0.0)
- Microsoft.EntityFrameworkCore.Abstractions (>= 7.0.3 && < 8.0.0)
- Microsoft.EntityFrameworkCore.Relational (>= 7.0.3 && < 8.0.0)
- Npgsql (>= 7.0.2)
NuGet packages (858)
Showing the top 5 NuGet packages that depend on Npgsql.EntityFrameworkCore.PostgreSQL:
Package | Downloads |
---|---|
EFCore.BulkExtensions
EntityFramework EF Core Bulk Batch Extensions for Insert Update Delete Read (CRUD) operations on SQL Server, PostgreSQL, MySQL, SQLite |
|
Npgsql.EntityFrameworkCore.PostgreSQL.Design
PostgreSQL/Npgsql provider for Entity Framework Core. |
|
Npgsql.EntityFrameworkCore.PostgreSQL.NetTopologySuite
NetTopologySuite PostGIS spatial support plugin for PostgreSQL/Npgsql Entity Framework Core provider. |
|
Npgsql.EntityFrameworkCore.PostgreSQL.NodaTime
NodaTime support plugin for PostgreSQL/Npgsql Entity Framework Core provider. |
|
Util.Datas
Util.Datas是Util应用框架的数据访问类库。 Util是一个.net core平台下的应用框架,旨在提升小型团队的开发输出能力,由常用公共操作类(工具类)、分层架构基类、Ui组件,第三方组件封装,第三方业务接口封装,配套代码生成模板,权限等组成。 |
GitHub repositories (159)
Showing the top 5 popular GitHub repositories that depend on Npgsql.EntityFrameworkCore.PostgreSQL:
Repository | Stars |
---|---|
dotnet/aspnetcore
ASP.NET Core is a cross-platform .NET framework for building modern cloud-based web applications on Windows, Mac, or Linux.
|
|
bitwarden/server
The core infrastructure backend (API, database, Docker, etc).
|
|
abpframework/abp
Open Source Web Application Framework for ASP.NET Core
|
|
aspnet/Mvc
[Archived] ASP.NET Core MVC is a model view controller framework for building dynamic web sites with clean separation of concerns, including the merged MVC, Web API, and Web Pages w/ Razor. Project moved to https://github.com/aspnet/AspNetCore
|
|
MassTransit/MassTransit
Distributed Application Framework for .NET
|
Version | Downloads | Last updated |
---|---|---|
8.0.0-preview.2 | 948 | 3/20/2023 |
8.0.0-preview.1 | 3,987 | 3/3/2023 |
7.0.3 | 586,356 | 2/15/2023 |
7.0.1 | 1,372,234 | 12/17/2022 |
7.0.0 | 876,205 | 11/9/2022 |
7.0.0-rc.2 | 35,454 | 10/11/2022 |
7.0.0-rc.1 | 11,556 | 9/16/2022 |
7.0.0-preview.7 | 13,215 | 8/9/2022 |
7.0.0-preview.6 | 10,885 | 7/13/2022 |
7.0.0-preview.5 | 7,572 | 6/19/2022 |
7.0.0-preview.4 | 12,730 | 5/11/2022 |
7.0.0-preview.3 | 8,774 | 4/19/2022 |
7.0.0-preview.2 | 22,137 | 3/16/2022 |
7.0.0-preview.1 | 7,133 | 2/17/2022 |
6.0.8 | 825,710 | 12/17/2022 |
6.0.7 | 3,752,633 | 9/16/2022 |
6.0.6 | 3,851,863 | 8/4/2022 |
6.0.5 | 3,340,250 | 6/19/2022 |
6.0.4 | 4,550,441 | 4/19/2022 |
6.0.3 | 4,674,482 | 1/27/2022 |
6.0.2 | 2,475,937 | 12/22/2021 |
6.0.1 | 2,816,479 | 12/3/2021 |
6.0.0 | 1,672,716 | 11/9/2021 |
6.0.0-rc.2 | 124,285 | 10/14/2021 |
6.0.0-rc.1 | 38,571 | 9/24/2021 |
6.0.0-preview7 | 17,244 | 8/16/2021 |
6.0.0-preview6 | 5,070 | 7/31/2021 |
6.0.0-preview5 | 21,337 | 7/1/2021 |
6.0.0-preview4 | 30,539 | 5/27/2021 |
6.0.0-preview3 | 21,136 | 4/15/2021 |
6.0.0-preview2 | 8,351 | 3/11/2021 |
6.0.0-preview1 | 10,797 | 2/16/2021 |
5.0.10 | 5,891,045 | 9/15/2021 |
5.0.7 | 4,373,620 | 6/13/2021 |
5.0.6 | 1,493,180 | 5/11/2021 |
5.0.5.1 | 1,049,886 | 4/21/2021 |
5.0.5 | 310,394 | 4/16/2021 |
5.0.2 | 4,057,402 | 1/19/2021 |
5.0.1 | 1,236,532 | 12/12/2020 |
5.0.0 | 1,511,618 | 11/15/2020 |
3.1.18 | 1,446,999 | 8/27/2021 |
3.1.11 | 2,269,600 | 1/21/2021 |
3.1.4 | 10,581,851 | 5/29/2020 |
3.1.3 | 2,898,524 | 3/26/2020 |
3.1.2 | 1,713,112 | 2/20/2020 |
3.1.1.2 | 720,726 | 2/6/2020 |
3.1.1.1 | 172,428 | 2/3/2020 |
3.1.1 | 292,132 | 1/31/2020 |
3.1.0 | 2,536,352 | 12/4/2019 |
3.0.1 | 964,210 | 10/2/2019 |
3.0.0 | 235,192 | 9/26/2019 |
2.2.4 | 4,790,701 | 5/21/2019 |
2.2.0 | 4,940,085 | 12/7/2018 |
2.1.2 | 3,387,808 | 9/8/2018 |
2.1.1.1 | 980,998 | 7/15/2018 |
2.1.1 | 654,539 | 7/1/2018 |
2.1.0 | 1,191,674 | 5/31/2018 |
2.0.2 | 452,207 | 4/22/2018 |
2.0.1 | 533,737 | 1/11/2018 |
2.0.0 | 794,510 | 8/16/2017 |
1.1.1 | 203,142 | 7/25/2017 |
1.1.0 | 777,203 | 11/20/2016 |
1.0.2 | 49,456 | 9/24/2016 |
1.0.1 | 123,025 | 7/21/2016 |
1.0.0 | 102,122 | 6/29/2016 |