elsa-core/src/modules/Elsa.Persistence.EFCore.Common/MigrationOptions.cs

15 lines
607 B
C#
Raw Normal View History

// ReSharper disable once CheckNamespace
namespace Elsa.Persistence.EFCore;
public class MigrationOptions
{
/// <summary>
/// Gets or sets a collection that determines whether Entity Framework Core migrations
/// should be executed for specific DbContext types.
/// </summary>
/// <remarks>
/// The key is the DbContext type, and the value is a boolean indicating whether migrations
/// should be applied for that specific context (true to apply, false to skip).
/// </remarks>
public IDictionary<Type, bool> RunMigrations { get; set; } = new Dictionary<Type, bool>();
}