AmpScm.RepoDb.PostgreSql
1.2026.408.481
dotnet add package AmpScm.RepoDb.PostgreSql --version 1.2026.408.481
NuGet\Install-Package AmpScm.RepoDb.PostgreSql -Version 1.2026.408.481
<PackageReference Include="AmpScm.RepoDb.PostgreSql" Version="1.2026.408.481" />
<PackageVersion Include="AmpScm.RepoDb.PostgreSql" Version="1.2026.408.481" />
<PackageReference Include="AmpScm.RepoDb.PostgreSql" />
paket add AmpScm.RepoDb.PostgreSql --version 1.2026.408.481
#r "nuget: AmpScm.RepoDb.PostgreSql, 1.2026.408.481"
#:package AmpScm.RepoDb.PostgreSql@1.2026.408.481
#addin nuget:?package=AmpScm.RepoDb.PostgreSql&version=1.2026.408.481
#tool nuget:?package=AmpScm.RepoDb.PostgreSql&version=1.2026.408.481
RepoDb.PostgreSql - a hybrid .NET ORM library for PostgreSQL.
RepoDB is an open-source .NET ORM library that bridges the gaps of micro-ORMs and full-ORMs. It helps you simplify the switch-over of when to use the BASIC and ADVANCE operations during the development.
Important Pages
- GitHub Home Page - to learn more about the core library.
- PostgreSQL Guide - getting started with PostgreSQL
- All Documentation - comprehensive guides and references
Community Engagements
- GitHub - for any issues, requests and problems.
- StackOverflow - for any technical questions.
- Gitter Chat - for direct and live Q&A.
Dependencies
License
- Copyright © 2019 - 2024 Michael Camara Pendon
- Copyright © 2025 - now Bert Huijben
Installation
At the Package Manager Console, write the command below.
> Install-Package AmpScm.RepoDb.PostgreSql
See the PostgreSQL Guide for more information.
Get Started
First, RepoDB must be configured and PostgreSQL support loaded.
using RepoDb;
using Npgsql;
GlobalConfiguration.Setup().UsePostgreSql();
Note: This call must be done once during application startup.
After the bootstrap initialization, any library operation can then be called.
Query
using (var connection = new NpgsqlConnection(ConnectionString))
{
var customer = connection.Query<Customer>(c => c.Id == 10045);
}
Insert
var customer = new Customer
{
FirstName = "John",
LastName = "Doe",
IsActive = true
};
using (var connection = new NpgsqlConnection(ConnectionString))
{
var id = connection.Insert<Customer>(customer);
}
Update
using (var connection = new NpgsqlConnection(ConnectionString))
{
var customer = connection.Query<Customer>(10045);
customer.FirstName = "John";
customer.LastUpdatedUtc = DateTime.UtcNow;
var affectedRows = connection.Update<Customer>(customer);
}
Delete
using (var connection = new NpgsqlConnection(ConnectionString))
{
var customer = connection.Query<Customer>(10045);
var deletedCount = connection.Delete<Customer>(customer);
}
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.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 is compatible. 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 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. |
| .NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
| .NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 is compatible. net481 was computed. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen40 was computed. tizen60 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETFramework 4.8
- AmpScm.RepoDb (>= 1.2026.408.481)
- Microsoft.Bcl.AsyncInterfaces (>= 10.0.5)
- Microsoft.Bcl.HashCode (>= 6.0.0)
- Npgsql (>= 8.0.9)
- System.ComponentModel.Annotations (>= 5.0.0)
- System.Dynamic.Runtime (>= 4.3.0)
- System.Memory (>= 4.6.3)
- System.Text.Json (>= 10.0.5)
-
.NETStandard 2.0
- AmpScm.RepoDb (>= 1.2026.408.481)
- Microsoft.Bcl.AsyncInterfaces (>= 10.0.5)
- Microsoft.Bcl.HashCode (>= 6.0.0)
- Npgsql (>= 8.0.9)
- System.ComponentModel.Annotations (>= 5.0.0)
- System.Memory (>= 4.6.3)
- System.Text.Json (>= 10.0.5)
-
net10.0
- AmpScm.RepoDb (>= 1.2026.408.481)
- Npgsql (>= 8.0.9)
-
net8.0
- AmpScm.RepoDb (>= 1.2026.408.481)
- Npgsql (>= 8.0.9)
-
net9.0
- AmpScm.RepoDb (>= 1.2026.408.481)
- Npgsql (>= 8.0.9)
NuGet packages (2)
Showing the top 2 NuGet packages that depend on AmpScm.RepoDb.PostgreSql:
| Package | Downloads |
|---|---|
|
AmpScm.RepoDb.PostgreSql.BulkOperations
An extension library that contains the official Bulk Operations of RepoDb for PostgreSQL. |
|
|
AmpScm.RepoDb.PostgreSql.Vectors
Adds Vector support to RepoDb.PostgreSql. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.2026.408.481 | 88 | 4/8/2026 |
| 1.2026.329.480 | 235 | 3/29/2026 |
| 1.2026.317.475 | 1,611 | 3/17/2026 |
| 1.2026.314.468 | 208 | 3/16/2026 |
| 1.2026.309.434 | 174 | 3/9/2026 |
| 1.2026.304.420 | 176 | 3/4/2026 |
| 1.2026.302.405 | 220 | 3/2/2026 |
| 1.15.2602.20384 | 171 | 2/20/2026 |
| 1.15.2512.22350 | 343 | 12/22/2025 |
| 1.14.2508.12328 | 371 | 8/12/2025 |
| 1.14.2508.4318 | 314 | 8/4/2025 |
| 1.14.2507.18312 | 217 | 7/18/2025 |
| 1.14.2507.18302 | 244 | 7/18/2025 |
| 1.14.2507.17297 | 281 | 7/17/2025 |
| 1.14.2507.4263 | 217 | 7/4/2025 |
| 1.14.2507.2257 | 298 | 7/2/2025 |
| 1.14.2506.30251 | 258 | 6/30/2025 |
| 1.14.2506.18235 | 305 | 6/18/2025 |
| 1.14.2506.18231 | 287 | 6/18/2025 |
| 1.14.2506.10222 | 432 | 6/12/2025 |