* Restore EF Core persistence layer Originally, we had moved EF Core to the extensions repo, but in practice this turned out to be rather impractical when debugging elsa-core, given that we would lose all of the state (workflow definitions, instances, etc.) across application restarts. * Integrate PostgreSQL support into EF Core persistence and enhance BlobStorage workflows provider setup.
37 lines
1 KiB
C#
37 lines
1 KiB
C#
using Microsoft.EntityFrameworkCore.Infrastructure;
|
|
using Microsoft.Extensions.DependencyInjection;
|
|
|
|
namespace Elsa.Persistence.EFCore;
|
|
|
|
/// <summary>
|
|
/// Provides options for configuring Elsa's Entity Framework Core integration.
|
|
/// </summary>
|
|
public class ElsaDbContextOptionsExtension : IDbContextOptionsExtension
|
|
{
|
|
/// <summary>
|
|
/// Initializes a new instance of the <see cref="ElsaDbContextOptionsExtension"/> class.
|
|
/// </summary>
|
|
/// <param name="options">The options.</param>
|
|
public ElsaDbContextOptionsExtension(ElsaDbContextOptions? options)
|
|
{
|
|
Options = options;
|
|
}
|
|
|
|
/// <summary>
|
|
/// Gets the options.
|
|
/// </summary>
|
|
public ElsaDbContextOptions? Options { get; }
|
|
|
|
/// <inheritdoc />
|
|
public DbContextOptionsExtensionInfo Info => new CustomDbContextOptionsExtensionInfo(this);
|
|
|
|
/// <inheritdoc />
|
|
public void ApplyServices(IServiceCollection services)
|
|
{
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
public void Validate(IDbContextOptions options)
|
|
{
|
|
}
|
|
} |