npgsql-vnext - Npgsql.EntityFrameworkCore.PostgreSQL 9.0.0-preview.1-ci.20231205T193500+sha.0a795e342

PostgreSQL/Npgsql provider for Entity Framework Core.

PM> Install-Package Npgsql.EntityFrameworkCore.PostgreSQL -Version 9.0.0-preview.1-ci.20231205T193500 -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-preview.1-ci.20231205T193500 -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-preview.1-ci.20231205T193500 --source https://www.myget.org/F/npgsql-vnext/api/v3/index.json

Copy to clipboard
<PackageReference Include="Npgsql.EntityFrameworkCore.PostgreSQL" Version="9.0.0-preview.1-ci.20231205T193500" />
Copy to clipboard
source https://www.myget.org/F/npgsql-vnext/api/v3/index.json

nuget Npgsql.EntityFrameworkCore.PostgreSQL  ~> 9.0.0-preview.1-ci.20231205T193500
Copy to clipboard

> choco install Npgsql.EntityFrameworkCore.PostgreSQL --version 9.0.0-preview.1-ci.20231205T193500 --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-preview.1-ci.20231205T193500" -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 (>= 8.0.0)
    • Microsoft.EntityFrameworkCore.Abstractions (>= 8.0.0)
    • Microsoft.EntityFrameworkCore.Relational (>= 8.0.0)
    • Npgsql (>= 8.0.0)
  • .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

347 total downloads
0 downloads for version 9.0.0-preview.1-ci.20231205T193500+sha.0a795e342
Download (300.37 KB)
Download symbols (86.11 KB)
Found on the current feed only

Package history

Version Size Last updated Downloads Mirrored?
9.0.0-preview.1-ci.20231205T193500+sha.0a795e342 300.37 KB Tue, 05 Dec 2023 19:35:26 GMT 0
9.0.0-preview.1-ci.20231204T145137+sha.91ccdf67b 300.37 KB Mon, 04 Dec 2023 14:52:14 GMT 0
9.0.0-preview.1-ci.20231128T121557+sha.631b33026 300.17 KB Tue, 28 Nov 2023 12:16:27 GMT 0
9.0.0-preview.1-ci.20231128T121016+sha.70039b6f6 300.1 KB Tue, 28 Nov 2023 12:10:42 GMT 0
9.0.0-preview.1-ci.20231121T012147+sha.060b9c618 300.1 KB Tue, 21 Nov 2023 01:22:19 GMT 0
8.0.0-rtm-ci.20231120T112609+sha.9bbb19dd7 300.09 KB Mon, 20 Nov 2023 11:26:35 GMT 1
8.0.0-rtm-ci.20231120T112001+sha.dd3c6a21a 300.09 KB Mon, 20 Nov 2023 11:20:24 GMT 0
8.0.0-rtm-ci.20231119T221732+sha.4464d47f0 299.98 KB Sun, 19 Nov 2023 22:17:56 GMT 0
8.0.0-rtm-ci.20231118T155259+sha.fa5ba2eb0 299.89 KB Sat, 18 Nov 2023 15:53:25 GMT 3
8.0.0-rtm-ci.20231117T222455+sha.92f881ccc 298.74 KB Fri, 17 Nov 2023 22:25:18 GMT 0
8.0.0-rtm-ci.20231117T104559+sha.9792445e8 297.84 KB Fri, 17 Nov 2023 10:46:21 GMT 0
8.0.0-rtm-ci.20231116T125239+sha.8568b17ef 296.53 KB Thu, 16 Nov 2023 12:53:01 GMT 0
8.0.0-rtm-ci.20231116T011124+sha.4cfcd4f2a 296.51 KB Thu, 16 Nov 2023 01:11:51 GMT 0
8.0.0-rtm-ci.20231116T001510+sha.be39b8325 294.59 KB Thu, 16 Nov 2023 00:15:35 GMT 0
8.0.0-rtm-ci.20231115T131924+sha.4a5f96213 291.6 KB Wed, 15 Nov 2023 13:19:48 GMT 3
8.0.0-rtm-ci.20231115T010942+sha.b30700b27 289.92 KB Wed, 15 Nov 2023 01:10:06 GMT 1
8.0.0-rtm-ci.20231113T150204+sha.ba2bae495 289.92 KB Mon, 13 Nov 2023 15:02:43 GMT 0
8.0.0-rtm-ci.20231113T121359+sha.a173de7fd 289.87 KB Mon, 13 Nov 2023 12:14:36 GMT 0
8.0.0-rtm-ci.20231109T120422+sha.ec877ca9a 289.88 KB Thu, 09 Nov 2023 12:04:49 GMT 256
8.0.0-rtm-ci.20231107T154956+sha.4a7ef9724 289.88 KB Tue, 07 Nov 2023 15:50:33 GMT 0
8.0.0-preview.7-ci.20230825T111820+sha.dd71bd7b3 280.66 KB Fri, 25 Aug 2023 11:19:03 GMT 16
8.0.0-preview.5-ci.20230818T093445+sha.171345ecf 816.35 KB Fri, 18 Aug 2023 09:35:19 GMT 1
8.0.0-preview.5-ci.20230817T112819+sha.135eb7737 815.8 KB Thu, 17 Aug 2023 11:28:49 GMT 0
8.0.0-preview.5-ci.20230810T163507+sha.9a94b91e3 815.78 KB Thu, 10 Aug 2023 16:35:48 GMT 1
8.0.0-preview.5-ci.20230807T130515+sha.e71b9f01c 815.76 KB Mon, 07 Aug 2023 13:06:01 GMT 0
8.0.0-preview.5-ci.20230731T134945+sha.1e348c1c0 815.77 KB Mon, 31 Jul 2023 13:50:18 GMT 2
8.0.0-preview.5-ci.20230707T211309+sha.1d6d8414b 815.7 KB Fri, 07 Jul 2023 21:13:50 GMT 1
8.0.0-preview.5-ci.20230707T125933+sha.6f18809ea 815.68 KB Fri, 07 Jul 2023 13:00:08 GMT 1
8.0.0-preview.5-ci.20230607T135524+sha.459b27ec5 814.15 KB Wed, 07 Jun 2023 13:56:38 GMT 1
8.0.0-preview.5-ci.20230605T095222+sha.9418c25ed 814.12 KB Mon, 05 Jun 2023 09:53:03 GMT 2
8.0.0-preview.5-ci.20230602T140422+sha.6cadc0b2f 814.11 KB Fri, 02 Jun 2023 14:04:54 GMT 2
8.0.0-preview.5-ci.20230602T135414+sha.76f68808f 814.14 KB Fri, 02 Jun 2023 13:55:04 GMT 2
8.0.0-preview.5-ci.20230601T113603+sha.0ce3dbf49 814.12 KB Thu, 01 Jun 2023 11:36:34 GMT 3
8.0.0-preview.5-ci.20230525T115033+sha.3cce62a29 814.12 KB Thu, 25 May 2023 11:51:19 GMT 2
8.0.0-preview.5-ci.20230522T092340+sha.c9bc9c18b 814.3 KB Mon, 22 May 2023 09:24:19 GMT 4
8.0.0-preview.4-ci.20230517T113710+sha.297baffae 801.9 KB Wed, 17 May 2023 11:37:41 GMT 2
8.0.0-preview.4-ci.20230511T102101+sha.6682d5aec 801.9 KB Thu, 11 May 2023 10:21:35 GMT 3
8.0.0-preview.4-ci.20230509T105007+sha.51355cee8 801.88 KB Tue, 09 May 2023 10:50:42 GMT 3
8.0.0-preview.4-ci.20230428T163332+sha.5f8f665ef 801.9 KB Fri, 28 Apr 2023 16:34:16 GMT 3
8.0.0-preview.3-ci.20230331T114526+sha.36522183c 801.3 KB Fri, 31 Mar 2023 11:45:57 GMT 4
8.0.0-preview.3-ci.20230320T222636+sha.9f58e1867 801.33 KB Mon, 20 Mar 2023 22:27:05 GMT 3
8.0.0-preview.3-ci.20230319T192135+sha.1817efd55 801.34 KB Sun, 19 Mar 2023 19:22:05 GMT 3
8.0.0-preview.3-ci.20230319T152817+sha.fd831f7da 798.87 KB Sun, 19 Mar 2023 15:28:47 GMT 4
8.0.0-preview.2-ci.20230315T124129+sha.5ae141aef 798.87 KB Wed, 15 Mar 2023 12:42:04 GMT 3
8.0.0-preview.2-ci.20230314T200411+sha.1018a451d 798.4 KB Tue, 14 Mar 2023 20:04:42 GMT 3
8.0.0-preview.2-ci.20230307T164756+sha.a1dcfd0a8 798.38 KB Tue, 07 Mar 2023 16:49:14 GMT 3
8.0.0-preview.2-ci.20230306T151544+sha.00724919a 798.37 KB Mon, 06 Mar 2023 15:16:22 GMT 2
8.0.0-preview.1-ci.20230303T223405+sha.574a53ca6 798.38 KB Fri, 03 Mar 2023 22:34:45 GMT 3
8.0.0-preview.1-ci.20230302T144309+sha.cadbf7cfc 798.39 KB Thu, 02 Mar 2023 14:43:46 GMT 3
8.0.0-preview.1-ci.20230226T185208+sha.f76e0ede9 798.32 KB Sun, 26 Feb 2023 18:52:38 GMT 3