diff --git a/modules/tenant-management/src/Volo.Abp.TenantManagement.Application/Volo/Abp/TenantManagement/TenantAppService.cs b/modules/tenant-management/src/Volo.Abp.TenantManagement.Application/Volo/Abp/TenantManagement/TenantAppService.cs index f618011cc7..575aa1eb0c 100644 --- a/modules/tenant-management/src/Volo.Abp.TenantManagement.Application/Volo/Abp/TenantManagement/TenantAppService.cs +++ b/modules/tenant-management/src/Volo.Abp.TenantManagement.Application/Volo/Abp/TenantManagement/TenantAppService.cs @@ -56,6 +56,8 @@ namespace Volo.Abp.TenantManagement await TenantRepository.InsertAsync(tenant); + await CurrentUnitOfWork.SaveChangesAsync(); + using (CurrentTenant.Change(tenant.Id, tenant.Name)) { //TODO: Handle database creation?