| | | 1 | | using System.Reflection; |
| | | 2 | | using CShells.Features; |
| | | 3 | | using Elsa.Persistence.EFCore.Extensions; |
| | | 4 | | using Elsa.Persistence.EFCore.Modules.Management; |
| | | 5 | | using JetBrains.Annotations; |
| | | 6 | | using Microsoft.EntityFrameworkCore; |
| | | 7 | | |
| | | 8 | | namespace Elsa.Persistence.EFCore.SqlServer.ShellFeatures.Management; |
| | | 9 | | |
| | | 10 | | /// <summary> |
| | | 11 | | /// Configures the management feature to use SqlServer persistence. |
| | | 12 | | /// </summary> |
| | | 13 | | [ShellFeature( |
| | | 14 | | DisplayName = "SqlServer Workflow Definition Persistence", |
| | | 15 | | Description = "Provides SqlServer persistence for workflow definitions", |
| | | 16 | | DependsOn = ["WorkflowManagement", "WorkflowDefinitions"])] |
| | | 17 | | [UsedImplicitly] |
| | | 18 | | public class SqlServerWorkflowDefinitionPersistenceShellFeature |
| | | 19 | | : EFCoreWorkflowDefinitionPersistenceShellFeatureBase |
| | | 20 | | { |
| | | 21 | | /// <inheritdoc /> |
| | | 22 | | protected override void ConfigureProvider(DbContextOptionsBuilder builder, Assembly migrationsAssembly, string conne |
| | | 23 | | { |
| | 0 | 24 | | builder.UseElsaSqlServer(migrationsAssembly, connectionString, options); |
| | 0 | 25 | | } |
| | | 26 | | } |