| | | 1 | | using Microsoft.Extensions.DependencyInjection; |
| | | 2 | | |
| | | 3 | | // ReSharper disable once CheckNamespace |
| | | 4 | | namespace Elsa.Persistence.EFCore; |
| | | 5 | | |
| | | 6 | | /// <summary> |
| | | 7 | | /// Represents shared persistence settings that can be cascaded to dependent persistence features. |
| | | 8 | | /// When a combined persistence feature (e.g., SqliteWorkflowPersistence) is configured, |
| | | 9 | | /// it can register these shared settings that individual features will use as defaults. |
| | | 10 | | /// </summary> |
| | | 11 | | public class SharedPersistenceSettings |
| | | 12 | | { |
| | | 13 | | /// <summary> |
| | | 14 | | /// Gets or sets the connection string to use for the database. |
| | | 15 | | /// </summary> |
| | 0 | 16 | | public string? ConnectionString { get; set; } |
| | | 17 | | |
| | | 18 | | /// <summary> |
| | | 19 | | /// Gets or sets additional options to configure the database context. |
| | | 20 | | /// </summary> |
| | 0 | 21 | | public ElsaDbContextOptions? DbContextOptions { get; set; } |
| | | 22 | | |
| | | 23 | | /// <summary> |
| | | 24 | | /// Gets or sets a value indicating whether to use context pooling. |
| | | 25 | | /// </summary> |
| | 0 | 26 | | public bool? UseContextPooling { get; set; } |
| | | 27 | | |
| | | 28 | | /// <summary> |
| | | 29 | | /// Gets or sets a value indicating whether to run migrations. |
| | | 30 | | /// </summary> |
| | 0 | 31 | | public bool? RunMigrations { get; set; } |
| | | 32 | | |
| | | 33 | | /// <summary> |
| | | 34 | | /// Gets or sets the lifetime of the DbContextFactory. |
| | | 35 | | /// </summary> |
| | 0 | 36 | | public ServiceLifetime? DbContextFactoryLifetime { get; set; } |
| | | 37 | | } |
| | | 38 | | |