Lyo.Endato.Postgres 1.0.3

There is a newer version of this package available.
See the version list below for details.
dotnet add package Lyo.Endato.Postgres --version 1.0.3
                    
NuGet\Install-Package Lyo.Endato.Postgres -Version 1.0.3
                    
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="Lyo.Endato.Postgres" Version="1.0.3" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Lyo.Endato.Postgres" Version="1.0.3" />
                    
Directory.Packages.props
<PackageReference Include="Lyo.Endato.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 Lyo.Endato.Postgres --version 1.0.3
                    
#r "nuget: Lyo.Endato.Postgres, 1.0.3"
                    
#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 Lyo.Endato.Postgres@1.0.3
                    
#: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=Lyo.Endato.Postgres&version=1.0.3
                    
Install as a Cake Addin
#tool nuget:?package=Lyo.Endato.Postgres&version=1.0.3
                    
Install as a Cake Tool

Lyo.Endato.Postgres

PostgreSQL schema and EF Core context for caching Endato Person Search (PS) and Contact Enrichment (CE) responses. Schema name is endato.

Examples

Quick start

services.AddEndatoDbContextFactoryFromConfiguration(builder.Configuration);

// or inline:
services.AddEndatoDbContextFactory(o => {
    o.ConnectionString = "Host=localhost;Database=lyo;Username=postgres;Password=postgres";
    o.EnableAutoMigrations = true;
});

What ships

  • EndatoDbContext (Database/EndatoDbContext.cs) and EndatoDbContextFactory for design-time tooling.
  • PostgresEndatoOptions (PostgresEndatoOptions.cs) — IPostgresMigrationConfig. Section "PostgresEndato". Properties: ConnectionString, EnableAutoMigrations (default false); Schema = "endato" is constant.
  • Migrations under Migrations/.

The two domains (Person Search and Contact Enrichment) are intentionally split into separate entity groups so caching either source is independent:

Group Entities
Person Search (Ps) EndatoPsQueryEntity, EndatoPsPersonEntity, EndatoPsAddressEntity, EndatoPsEmailAddressEntity, EndatoPsPhoneNumberEntity (+ matching *Configuration classes).
Contact Enrichment (Ce) EndatoCeQueryEntity, EndatoCePersonEntity, EndatoCeAddressEntity, EndatoCeEmailAddressEntity, EndatoCePhoneNumberEntity (+ matching *Configuration classes).

OnModelCreating sets HasDefaultSchema("endato") and applies each entity configuration; the migrations history table is also written to the endato schema.

DI surface (Extensions.cs)

All registrations are extension methods on IServiceCollection (declared inside extension(IServiceCollection services) blocks):

Method Description
AddEndatoDbContext(string connectionString) Convenience: registers the factory plus a scoped EndatoDbContext resolved from the factory.
AddEndatoDbContext(Action<DbContextOptionsBuilder>) Standard EF AddDbContext overload.
AddEndatoDbContextFactory(Action<PostgresEndatoOptions>) Builds options inline.
AddEndatoDbContextFactoryFromConfiguration(config, sectionName?) Binds options from configuration (default section "PostgresEndato").
AddEndatoDbContextFactory(PostgresEndatoOptions) Registers IDbContextFactory<EndatoDbContext> (Npgsql provider), wires AddPostgresMigrations<EndatoDbContext, …>, and sets the migrations history table to the endato schema.

Dependencies

Generated from ProjectReference / PackageReference (same model as docs/Lyo.ProjectGraph.html).

  • Lyo.Exceptions — (direct, lyo)
  • Lyo.Postgres — (direct, lyo)
  • Microsoft.Extensions.Configuration.Binder 10.0.5 — (direct, microsoft)
  • Microsoft.EntityFrameworkCore 10.0.5 — (transitive, microsoft)
  • Microsoft.EntityFrameworkCore.Design 10.0.5 — (transitive, microsoft)
  • Microsoft.EntityFrameworkCore.Relational 10.0.5 — (transitive, microsoft)
  • Microsoft.Extensions.Hosting.Abstractions 10.0.5 — (transitive, microsoft)
  • Microsoft.Extensions.Options 10.0.5 — (transitive, microsoft)
  • Npgsql.EntityFrameworkCore.PostgreSQL 10.0.3 — (transitive, third-party)
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
1.0.9 0 8/22/2026
1.0.6 42 8/20/2026
1.0.4 71 8/20/2026
1.0.3 63 8/19/2026
1.0.2 77 8/19/2026
1.0.1 86 8/18/2026
1.0.0 89 8/16/2026