Skip to content

Commit

Permalink
Update Elsa server to use Sqlite
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
sfmskywalker committed Apr 1, 2024
1 parent 91177f1 commit 61a31b8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions writerside/snippets/installation/elsa-server/Program.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
using Elsa.EntityFrameworkCore.Extensions;
using Elsa.EntityFrameworkCore.Modules.Management;
using Elsa.EntityFrameworkCore.Modules.Runtime;
using Elsa.Extensions;
Expand All @@ -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 =>
Expand Down

0 comments on commit 61a31b8

Please sign in to comment.