nextorm.postgres 1.0.9

dotnet add package nextorm.postgres --version 1.0.9
                    
NuGet\Install-Package nextorm.postgres -Version 1.0.9
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="nextorm.postgres" Version="1.0.9" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="nextorm.postgres" Version="1.0.9" />
                    
Directory.Packages.props
<PackageReference Include="nextorm.postgres" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add nextorm.postgres --version 1.0.9
                    
#r "nuget: nextorm.postgres, 1.0.9"
                    
#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 nextorm.postgres@1.0.9
                    
#: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=nextorm.postgres&version=1.0.9
                    
Install as a Cake Addin
#tool nuget:?package=nextorm.postgres&version=1.0.9
                    
Install as a Cake Tool

Nextorm — PostgreSQL provider

NuGet

nextorm.postgres adds PostgreSQL support to Nextorm — a zero-SQL object-relational mapper for .NET that turns typed C# queries into SQL and materializes rows without change tracking. The package supplies the PostgreSQL dialect and the UsePostgres builder extension over Npgsql.

Installation

All current nextorm releases are prereleases, so --prerelease is required:

dotnet add package nextorm --prerelease
dotnet add package nextorm.postgres --prerelease

Package Manager Console: Install-Package nextorm -Prerelease and Install-Package nextorm.postgres -Prerelease.

Usage

using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using NextORM.Core;
using NextORM.Postgres;

var builder = new DataContextBuilder()
    .UsePostgres("Host=localhost;Database=app;Username=app;Password=secret");
using var dataContext = builder.CreateDataContext();

await foreach (var row in dataContext.From<IOrder>()
                                     .Where(order => order.Total > 100)
                                     .Select(order => new { order.Id, order.Total })
                                     .ToAsyncEnumerable())
{
    Console.WriteLine($"{row.Id}: {row.Total}");
}

[SqlTable("orders")]
public interface IOrder
{
    [Key]
    [Column("id")]
    int Id { get; set; }

    [Column("total")]
    decimal Total { get; set; }
}

Values are bound as @name parameters, which Npgsql rewrites to native positional placeholders. UsePostgres also accepts an open DbConnection.

Good to know

  • Version-gated syntax is opt-in: the server version must be configured explicitly for aggregate FILTER (WHERE …) (9.4+), MERGE (15+) and similar. A concrete context type keeps one immutable version for the process lifetime.
  • SelectWhereMax/SelectWhereMin use native DISTINCT ON / LIMIT 1 instead of a window function.
  • Bulk insert goes through COPY; the SQL Server-only bulk-copy flags are rejected rather than ignored.

Documentation

Status

Beta: every release so far is a prerelease, the public API still changes between them, and backward compatibility is not preserved yet. Release notes are on GitHub Releases.

License

MIT

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  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.  net11.0 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on nextorm.postgres:

Package Downloads
nextorm.entityframeworkcore

Entity Framework Core integration for Nextorm, a zero-SQL ORM for .NET: run nextorm queries and commands over an existing DbContext connection and transaction, reusing the EF model mapping. Adds CreateNextOrmContext().

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.9 88 11/11/2026
1.0.9-rc5 128 11/8/2026
1.0.9-rc4 131 10/29/2026
1.0.9-rc3 102 10/20/2026
1.0.9-rc2 140 10/10/2026
1.0.9-rc1 72 10/7/2026
1.0.9-b 69 10/5/2026
1.0.9-a 75 9/29/2026
1.0.8-b 139 9/27/2026
1.0.7-b 82 9/25/2026
1.0.6-alpha 72 9/25/2026
1.0.5-alpha 93 9/24/2026
1.0.4-alpha 91 9/22/2026
1.0.3.1-alpha 71 9/22/2026
1.0.3-alpha 77 9/21/2026