From 61a31b8a365e411e69150b76e15c128edfdb800d Mon Sep 17 00:00:00 2001 From: Sipke Schoorstra Date: Mon, 1 Apr 2024 19:46:02 +0200 Subject: [PATCH] Update Elsa server to use Sqlite The Elsa server installation code has been updated to use Sqlite instead of the previously configured database. Adjustments have been made to both the workflow management layer and the runtime layer, enabling them to utilize EntityFrameworkCore with Sqlite. --- writerside/snippets/installation/elsa-server/Program.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/writerside/snippets/installation/elsa-server/Program.cs b/writerside/snippets/installation/elsa-server/Program.cs index f04ce2d..bccaafd 100644 --- a/writerside/snippets/installation/elsa-server/Program.cs +++ b/writerside/snippets/installation/elsa-server/Program.cs @@ -1,3 +1,4 @@ +using Elsa.EntityFrameworkCore.Extensions; using Elsa.EntityFrameworkCore.Modules.Management; using Elsa.EntityFrameworkCore.Modules.Runtime; using Elsa.Extensions; @@ -6,10 +7,10 @@ builder.Services.AddElsa(elsa => { // Configure Management layer to use EF Core. - elsa.UseWorkflowManagement(management => management.UseEntityFrameworkCore()); + elsa.UseWorkflowManagement(management => management.UseEntityFrameworkCore(ef => ef.UseSqlite())); // Configure Runtime layer to use EF Core. - elsa.UseWorkflowRuntime(runtime => runtime.UseEntityFrameworkCore()); + elsa.UseWorkflowRuntime(runtime => runtime.UseEntityFrameworkCore(ef => ef.UseSqlite())); // Default Identity features for authentication/authorization. elsa.UseIdentity(identity =>