Moberg.Beacon.Core.PostgreSql 4.0.0

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

Beacon.Core.PostgreSql

PostgreSQL database provider for Beacon.

Overview

This package provides Entity Framework Core configuration and migrations for using PostgreSQL as the Beacon metadata database. It includes snake_case naming conventions and full support for PostgreSQL-specific features.

Installation

dotnet add package Beacon.Core.PostgreSql
dotnet add package Beacon.UI

Quick Start

1. Configure in Program.cs

using Beacon.Core;
using Beacon.UI;

// Single method call for all Beacon configuration
builder.Services.AddBeacon(builder.Configuration, options =>
{
    options.UsePostgreSql(builder.Configuration.GetConnectionString("BeaconContext")!, "beacon");
    options.AddBeaconScheduler<YourScheduler>();
    options.BaseUrl = "https://your-domain.com";
});

var app = builder.Build();

app.UseStaticFiles(); // Required for Beacon UI assets

// Serve the React SPA (Vite + TypeScript + Tailwind) at the root URL "/".
// Authentication is cookie-based with a pluggable IBeaconAuthenticationProvider
// (login form, OIDC/SSO, JWT for MCP, SHA256-hashed API keys).
app.UseBeaconUI();
app.MapBeaconApi();

2. Add Connection String

In appsettings.json:

{
  "ConnectionStrings": {
    "BeaconContext": "Host=localhost;Database=beacon;Username=postgres;Password=yourpassword"
  }
}

Features

  • PostgreSQL 12+ support
  • Entity Framework Core integration
  • Automatic schema creation and migrations
  • Snake_case naming conventions
  • Multi-tenant support via schema isolation

Database Setup

CREATE DATABASE beacon;
CREATE SCHEMA beacon;
GRANT ALL ON SCHEMA beacon TO postgres;

Documentation

License

GNU AGPL v3.0 or Commercial license - see LICENSE

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
4.0.0 85 8/20/2026