OpenSleigh.Persistence.SQLServer 3.0.4.2
OpenSleigh.Persistence.SQLServer
Description
SQL Server Persistence library for OpenSleigh
Installation
This library can be installed from Nuget: https://www.nuget.org/packages/OpenSleigh.Persistence.SQLServer/
How-to
The first thing to do is build an instance of SqlConfiguration with the connection details. This can be done by reading the current app configuration. Once done, all you have to do is to call the UseSqlServerPersistence extension method:
services.AddOpenSleigh(cfg =>{
var connectionString = Configuration.GetConnectionString("sql");
var sqlCfg = new SqlConfiguration(connectionString);
cfg.UseSqlServerPersistence(sqlCfg);
// register the Sagas here
});
Of course it can be used in conjunction with any other Transport library as well (eg. InMemory or RabbitMQ.
No packages depend on OpenSleigh.Persistence.SQLServer.
.NET 8.0
- OpenSleigh.Persistence.SQL (>= 3.0.4.2)
- Microsoft.EntityFrameworkCore (>= 9.0.4)
- Microsoft.EntityFrameworkCore.SqlServer (>= 9.0.4)
- Microsoft.EntityFrameworkCore.Relational (>= 9.0.4)
- Microsoft.Extensions.DependencyInjection (>= 9.0.5)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 9.0.5)
- Microsoft.Extensions.Hosting.Abstractions (>= 9.0.5)
- Microsoft.Extensions.Logging.Abstractions (>= 9.0.5)