|
|
|
@ -1,7 +1,8 @@ |
|
|
|
using EShopOnAbp.CatalogService.EntityFrameworkCore; |
|
|
|
using EShopOnAbp.Shared.Hosting.Microservices.DbMigrations; |
|
|
|
using EShopOnAbp.Shared.Hosting.Microservices.DbMigrations; |
|
|
|
using System; |
|
|
|
using System.Threading.Tasks; |
|
|
|
using EShopOnAbp.CatalogService.MongoDB; |
|
|
|
using EShopOnAbp.Shared.Hosting.Microservices.DbMigrations.MongoDb; |
|
|
|
using Volo.Abp.Data; |
|
|
|
using Volo.Abp.EventBus.Distributed; |
|
|
|
using Volo.Abp.MultiTenancy; |
|
|
|
@ -10,20 +11,21 @@ using Volo.Abp.Uow; |
|
|
|
namespace EShopOnAbp.CatalogService.DbMigrations |
|
|
|
{ |
|
|
|
public class CatalogServiceDatabaseMigrationEventHandler |
|
|
|
: DatabaseMigrationEventHandlerBase<CatalogServiceDbContext>, |
|
|
|
: DatabaseMongoDbMigrationEventHandler<CatalogServiceMongoDbContext>, |
|
|
|
IDistributedEventHandler<ApplyDatabaseMigrationsEto> |
|
|
|
{ |
|
|
|
public CatalogServiceDatabaseMigrationEventHandler( |
|
|
|
ICurrentTenant currentTenant, |
|
|
|
IUnitOfWorkManager unitOfWorkManager, |
|
|
|
ITenantStore tenantStore, |
|
|
|
IDistributedEventBus distributedEventBus |
|
|
|
IDistributedEventBus distributedEventBus, |
|
|
|
IServiceProvider serviceProvider |
|
|
|
) : base( |
|
|
|
currentTenant, |
|
|
|
unitOfWorkManager, |
|
|
|
tenantStore, |
|
|
|
distributedEventBus, |
|
|
|
CatalogServiceDbProperties.ConnectionStringName) |
|
|
|
CatalogServiceDbProperties.ConnectionStringName,serviceProvider) |
|
|
|
{ |
|
|
|
} |
|
|
|
|
|
|
|
|