| | | 1 | | using Elsa.Persistence.EFCore.Abstractions; |
| | | 2 | | using Elsa.Persistence.EFCore.Extensions; |
| | | 3 | | using Elsa.Persistence.EFCore.Modules.Alterations; |
| | | 4 | | using Elsa.Persistence.EFCore.Modules.Identity; |
| | | 5 | | using Elsa.Persistence.EFCore.Modules.Labels; |
| | | 6 | | using Elsa.Persistence.EFCore.Modules.Management; |
| | | 7 | | using Elsa.Persistence.EFCore.Modules.Runtime; |
| | | 8 | | using Elsa.Persistence.EFCore.Modules.Tenants; |
| | | 9 | | using JetBrains.Annotations; |
| | | 10 | | using Microsoft.EntityFrameworkCore; |
| | | 11 | | |
| | | 12 | | #pragma warning disable CS1591 // Missing XML comment for publicly visible type or member |
| | | 13 | | |
| | | 14 | | namespace Elsa.Persistence.EFCore.Sqlite; |
| | | 15 | | |
| | | 16 | | [UsedImplicitly] |
| | | 17 | | public class IdentityDbContextFactory : SqliteDesignTimeDbContextFactory<IdentityElsaDbContext>; |
| | | 18 | | |
| | | 19 | | [UsedImplicitly] |
| | | 20 | | public class ManagementDbContextFactory : SqliteDesignTimeDbContextFactory<ManagementElsaDbContext>; |
| | | 21 | | |
| | | 22 | | [UsedImplicitly] |
| | | 23 | | public class RuntimeDbContextFactory : SqliteDesignTimeDbContextFactory<RuntimeElsaDbContext>; |
| | | 24 | | |
| | | 25 | | [UsedImplicitly] |
| | | 26 | | public class LabelsDbContextFactory : SqliteDesignTimeDbContextFactory<LabelsElsaDbContext>; |
| | | 27 | | |
| | | 28 | | [UsedImplicitly] |
| | | 29 | | public class AlterationsDbContextFactories : SqliteDesignTimeDbContextFactory<AlterationsElsaDbContext>; |
| | | 30 | | |
| | | 31 | | [UsedImplicitly] |
| | | 32 | | public class TenantsDbContextFactories : SqliteDesignTimeDbContextFactory<TenantsElsaDbContext>; |
| | | 33 | | |
| | | 34 | | public class SqliteDesignTimeDbContextFactory<TDbContext> : DesignTimeDbContextFactoryBase<TDbContext> where TDbContext |
| | | 35 | | { |
| | | 36 | | protected override void ConfigureBuilder(DbContextOptionsBuilder<TDbContext> builder, string connectionString) |
| | | 37 | | { |
| | 0 | 38 | | builder.UseElsaSqlite(GetType().Assembly, connectionString); |
| | 0 | 39 | | } |
| | | 40 | | } |