From 7129f86e1e3bf955c7127f9ae65eda056489e09d Mon Sep 17 00:00:00 2001 From: Sipke Schoorstra Date: Mon, 4 Nov 2024 11:47:53 +0100 Subject: [PATCH] Add SQLite support to entity model creation This commit introduces a new scoped service for `IEntityModelCreatingHandler` to handle SQLite database setups. The inclusion of `SetupForSqlite` allows the application to support SQLite alongside Oracle for entity models. --- .../Elsa.Agents.Persistence.EntityFrameworkCore/Feature.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/modules/Elsa.Agents.Persistence.EntityFrameworkCore/Feature.cs b/src/modules/Elsa.Agents.Persistence.EntityFrameworkCore/Feature.cs index 555eb3d7b..fdfc988aa 100644 --- a/src/modules/Elsa.Agents.Persistence.EntityFrameworkCore/Feature.cs +++ b/src/modules/Elsa.Agents.Persistence.EntityFrameworkCore/Feature.cs @@ -1,6 +1,7 @@ using Elsa.Agents.Persistence.Entities; using Elsa.Agents.Persistence.Features; using Elsa.EntityFrameworkCore; +using Elsa.EntityFrameworkCore.EntityHandlers; using Elsa.Features.Attributes; using Elsa.Features.Services; using Microsoft.Extensions.DependencyInjection; @@ -34,5 +35,6 @@ public class EFCoreAgentPersistenceFeature(IModule module) : PersistenceFeatureB AddEntityStore(); AddEntityStore(); Services.AddScoped(); + Services.AddScoped(); } } \ No newline at end of file