RecurringThings.PostgreSQL 10.0.0

dotnet add package RecurringThings.PostgreSQL --version 10.0.0
                    
NuGet\Install-Package RecurringThings.PostgreSQL -Version 10.0.0
                    
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="RecurringThings.PostgreSQL" Version="10.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="RecurringThings.PostgreSQL" Version="10.0.0" />
                    
Directory.Packages.props
<PackageReference Include="RecurringThings.PostgreSQL" />
                    
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 RecurringThings.PostgreSQL --version 10.0.0
                    
#r "nuget: RecurringThings.PostgreSQL, 10.0.0"
                    
#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 RecurringThings.PostgreSQL@10.0.0
                    
#: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=RecurringThings.PostgreSQL&version=10.0.0
                    
Install as a Cake Addin
#tool nuget:?package=RecurringThings.PostgreSQL&version=10.0.0
                    
Install as a Cake Tool

RecurringThings.PostgreSQL

NuGet

PostgreSQL persistence provider for RecurringThings.

Installation

dotnet add package RecurringThings
dotnet add package RecurringThings.PostgreSQL

Configuration

using RecurringThings.Configuration;
using RecurringThings.PostgreSQL.Configuration;

services.AddRecurringThings(builder =>
    builder.UsePostgreSql((provider, options) =>
    {
        options.ConnectionString = "Host=localhost;Database=myapp;Username=user;Password=pass";
        options.RunMigrationsOnStartup = true;  // Optional, default is true
    }));

The IServiceProvider parameter allows you to resolve services registered before AddRecurringThings, such as IOptions<T> or IConfiguration.

Migrations

Migrations run automatically on startup when RunMigrationsOnStartup = true (default). The provider uses Entity Framework Core migrations with PostgreSQL advisory locks to ensure safe concurrent migration across multiple application replicas.

To disable automatic migrations:

builder.UsePostgreSql((provider, options) =>
{
    options.ConnectionString = connectionString;
    options.RunMigrationsOnStartup = false;
});

Integration Tests

Set the environment variable before running integration tests:

export POSTGRES_CONNECTION_STRING="Host=localhost;Database=test;Username=user;Password=pass"
dotnet test --filter 'Category=Integration'
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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
10.0.0 55 2/2/2026
0.1.0-alpha.10 37 2/2/2026
0.1.0-alpha.9 42 2/2/2026
0.1.0-alpha.8 44 1/28/2026
0.1.0-alpha.7 45 1/28/2026
0.1.0-alpha.6 37 1/28/2026
0.1.0-alpha.5 41 1/27/2026
0.1.0-alpha.4 37 1/27/2026
0.1.0-alpha.3 35 1/27/2026
0.1.0-alpha.2 39 1/27/2026
0.1.0-alpha.1 37 1/27/2026