From 9199ae991ceba6dadd848856276bc208d77ddc87 Mon Sep 17 00:00:00 2001 From: Sipke Schoorstra Date: Mon, 1 Apr 2024 22:04:25 +0200 Subject: [PATCH] Add ElsaDbContextOptions to DbContextOptionsBuilder A line of code is added to enable applying ElsaDbContextOptions as default in DbContextOptionsBuilder within PersistenceFeatureBase. This change specifies the use of ElsaDbContextOptions when configuring the context options, enhancing the database context setup in the EntityFrameworkCore.Common module. --- .../Elsa.EntityFrameworkCore.Common/PersistenceFeatureBase.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/modules/Elsa.EntityFrameworkCore.Common/PersistenceFeatureBase.cs b/src/modules/Elsa.EntityFrameworkCore.Common/PersistenceFeatureBase.cs index 1e727d578..4efe536a3 100644 --- a/src/modules/Elsa.EntityFrameworkCore.Common/PersistenceFeatureBase.cs +++ b/src/modules/Elsa.EntityFrameworkCore.Common/PersistenceFeatureBase.cs @@ -36,6 +36,7 @@ public abstract class PersistenceFeatureBase : FeatureBase where TDb /// Gets or sets the callback used to configure the . /// public Action DbContextOptionsBuilder = (_, options) => options + .UseElsaDbContextOptions(default) .UseSqlite("Data Source=elsa.sqlite.db;Cache=Shared;", sqlite => sqlite .MigrationsAssembly("Elsa.EntityFrameworkCore.Sqlite") .MigrationsHistoryTable(ElsaDbContextBase.MigrationsHistoryTable, ElsaDbContextBase.ElsaSchema));