|
|
@ -14,7 +14,7 @@ using Volo.Abp.Uow; |
|
|
|
|
|
|
|
|
namespace Volo.Abp.EntityFrameworkCore.Migrations; |
|
|
namespace Volo.Abp.EntityFrameworkCore.Migrations; |
|
|
|
|
|
|
|
|
public abstract class DatabaseMigrationEventHandlerBase<TDbContext> : |
|
|
public abstract class EfCoreDatabaseMigrationEventHandlerBase<TDbContext> : |
|
|
IDistributedEventHandler<TenantCreatedEto>, |
|
|
IDistributedEventHandler<TenantCreatedEto>, |
|
|
IDistributedEventHandler<TenantConnectionStringUpdatedEto>, |
|
|
IDistributedEventHandler<TenantConnectionStringUpdatedEto>, |
|
|
IDistributedEventHandler<ApplyDatabaseMigrationsEto>, |
|
|
IDistributedEventHandler<ApplyDatabaseMigrationsEto>, |
|
|
@ -41,9 +41,9 @@ public abstract class DatabaseMigrationEventHandlerBase<TDbContext> : |
|
|
protected IUnitOfWorkManager UnitOfWorkManager { get; } |
|
|
protected IUnitOfWorkManager UnitOfWorkManager { get; } |
|
|
protected ITenantStore TenantStore { get; } |
|
|
protected ITenantStore TenantStore { get; } |
|
|
protected IDistributedEventBus DistributedEventBus { get; } |
|
|
protected IDistributedEventBus DistributedEventBus { get; } |
|
|
protected ILogger<DatabaseMigrationEventHandlerBase<TDbContext>> Logger { get; } |
|
|
protected ILogger<EfCoreDatabaseMigrationEventHandlerBase<TDbContext>> Logger { get; } |
|
|
|
|
|
|
|
|
protected DatabaseMigrationEventHandlerBase( |
|
|
protected EfCoreDatabaseMigrationEventHandlerBase( |
|
|
string databaseName, |
|
|
string databaseName, |
|
|
ICurrentTenant currentTenant, |
|
|
ICurrentTenant currentTenant, |
|
|
IUnitOfWorkManager unitOfWorkManager, |
|
|
IUnitOfWorkManager unitOfWorkManager, |
|
|
@ -57,7 +57,7 @@ public abstract class DatabaseMigrationEventHandlerBase<TDbContext> : |
|
|
DatabaseName = databaseName; |
|
|
DatabaseName = databaseName; |
|
|
DistributedEventBus = distributedEventBus; |
|
|
DistributedEventBus = distributedEventBus; |
|
|
|
|
|
|
|
|
Logger = loggerFactory.CreateLogger<DatabaseMigrationEventHandlerBase<TDbContext>>(); |
|
|
Logger = loggerFactory.CreateLogger<EfCoreDatabaseMigrationEventHandlerBase<TDbContext>>(); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
public virtual async Task HandleEventAsync(ApplyDatabaseMigrationsEto eventData) |
|
|
public virtual async Task HandleEventAsync(ApplyDatabaseMigrationsEto eventData) |