Alvecta.Foundation.Infrastructure.EF.AuroraDsql
7.0.65
See the version list below for details.
dotnet add package Alvecta.Foundation.Infrastructure.EF.AuroraDsql --version 7.0.65
NuGet\Install-Package Alvecta.Foundation.Infrastructure.EF.AuroraDsql -Version 7.0.65
<PackageReference Include="Alvecta.Foundation.Infrastructure.EF.AuroraDsql" Version="7.0.65" />
<PackageVersion Include="Alvecta.Foundation.Infrastructure.EF.AuroraDsql" Version="7.0.65" />
<PackageReference Include="Alvecta.Foundation.Infrastructure.EF.AuroraDsql" />
paket add Alvecta.Foundation.Infrastructure.EF.AuroraDsql --version 7.0.65
#r "nuget: Alvecta.Foundation.Infrastructure.EF.AuroraDsql, 7.0.65"
#:package Alvecta.Foundation.Infrastructure.EF.AuroraDsql@7.0.65
#addin nuget:?package=Alvecta.Foundation.Infrastructure.EF.AuroraDsql&version=7.0.65
#tool nuget:?package=Alvecta.Foundation.Infrastructure.EF.AuroraDsql&version=7.0.65
Alvecta.Foundation.Infrastructure.EF.AuroraDsql
Amazon Aurora DSQL wiring for Alvecta.Foundation.Infrastructure.EF: the DbDataSource that
connects with IAM authentication, and the DbContext options that make EF Core migrations and
transactions work on DSQL.
It belongs to the Infrastructure layer. Dependencies: Alvecta.Foundation.Infrastructure.EF,
Alvecta.Utils.EF.AuroraDsql, Amazon.AuroraDsql.Npgsql, AWSSDK.DSQL, Npgsql and
Npgsql.EntityFrameworkCore.PostgreSQL.
What it contains
AuroraDsqlDbDataSourceProvider— theIDbDataSourceProvider. Builds oneDsqlDataSourceper connection string (cached for the life of the process) from itsHost,Port,Database,UsernameandSearch Path. Connections authenticate with IAM tokens from the default AWS credential chain, so the connection string carries no password. Schema names in the search path are quoted, so their casing is kept.AuroraDsqlDbContextOptionsAction— theIDbContextOptionsAction. CallsUseNpgsqlover that data source (PostgreSQL 16 compatibility, the migrations assembly fromIMigrationsAssemblyProvider), thenUseAuroraDsqlfromAlvecta.Utils.EF.AuroraDsql: a DSQL-compatible migrations SQL generator and history table,REPEATABLE READtransactions, and migrations that wait for asynchronous index builds to finish, logging their progress through the host'sILoggerFactory.AlvectaFoundationEFAuroraDsqlStartup.ConfigureServices(IServiceCollection)— registers both and appliesAuroraDsqlNpgsqlPatcher.Patch(), so transactions opened directly on anNpgsqlConnectionwork on DSQL too.
Usage
dotnet add package Alvecta.Foundation.Infrastructure.EF.AuroraDsql
Register it in the composition root, together with an IMigrationsAssemblyProvider for the project
that holds your migrations:
using Alvecta.Foundation.Infrastructure.EF.AuroraDsql;
using Alvecta.Foundation.Infrastructure.EF.Persistence.DatabaseMigration;
AlvectaFoundationEFAuroraDsqlStartup.ConfigureServices(services);
services.AddSingleton<IMigrationsAssemblyProvider, MigrationsAssemblyProvider<OrdersMigrationsMarker>>();
services.AddLogging();
The SetDbContextOptions callback shown in the Alvecta.Foundation.Infrastructure.EF readme then
resolves both services. A connection string looks like:
Server=<cluster-id>.dsql.<region>.on.aws;Database=postgres;User Id=admin;SearchPath=Orders
The process needs dsql:DbConnectAdmin (for the admin user) on the cluster.
Alvecta.Foundation.Deployment.Cdk grants it to every service when the environment owns a cluster.
Add Alvecta.Foundation.Infrastructure.EF.Postgres as well to create the schema before the first
migration.
| Product | Versions 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. |
-
net10.0
- Alvecta.Foundation.Infrastructure.EF (>= 7.0.65)
- Alvecta.Utils (>= 8.0.66)
- Alvecta.Utils.EF.AuroraDsql (>= 8.0.66)
- Amazon.AuroraDsql.Npgsql (>= 1.1.0)
- AWSSDK.Core (>= 4.0.102.11)
- AWSSDK.DSQL (>= 4.0.103.7)
- Microsoft.EntityFrameworkCore.Relational (>= 10.0.13)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.13)
- Microsoft.Extensions.Logging.Abstractions (>= 10.0.13)
- Npgsql (>= 10.0.3)
- Npgsql.EntityFrameworkCore.PostgreSQL (>= 10.0.3)
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 |
|---|---|---|
| 9.0.83 | 62 | 10/29/2026 |
| 9.0.82 | 65 | 10/29/2026 |
| 8.1.81 | 63 | 10/29/2026 |
| 8.0.80 | 74 | 10/28/2026 |
| 8.0.79 | 75 | 10/28/2026 |
| 8.0.78 | 79 | 10/28/2026 |
| 8.0.77 | 78 | 10/28/2026 |
| 7.1.76 | 83 | 10/27/2026 |
| 7.1.75 | 87 | 10/26/2026 |
| 7.0.74 | 86 | 10/26/2026 |
| 7.0.73 | 88 | 10/23/2026 |
| 7.0.72 | 88 | 10/23/2026 |
| 7.0.71 | 93 | 10/23/2026 |
| 7.0.70 | 91 | 10/22/2026 |
| 7.0.69 | 98 | 10/21/2026 |
| 7.0.68 | 89 | 10/21/2026 |
| 7.0.67 | 95 | 10/20/2026 |
| 7.0.66 | 85 | 10/19/2026 |
| 7.0.65 | 90 | 10/19/2026 |
| 6.3.64 | 92 | 10/19/2026 |