Please provide your logs file
Hi,
Try:
using (_currentTenant.Change(tenant.Id))
{
await ServiceProvider.
GetRequiredService<KantanDbMigrationService>()
.MigrateTenantDatabasesAsync(tenant);
}
Hi, You can reffer microservices example: https://docs.abp.io/en/abp/latest/Samples/Microservice-Demo.
In the microservices example, the tenant management is deployed separately but does not have its own database.
You just set the connection string in appsetting.json
, add and apply database migration.
Hi, You can reffer microservices example: https://docs.abp.io/en/abp/latest/Samples/Microservice-Demo.
In the microservices example, the product management module is deployed separately and has its own database.
See https://dba.stackexchange.com/questions/264/guid-vs-int-which-is-better-as-a-primary-key.
ABP use sequential GUID, It is good for indexing.
Yes , there are the same.
Try:
EntityFrameworkCore.DbMigrations
instead of EntityFrameworkCore
project. See https://docs.abp.io/en/abp/latest/Startup-Templates/Application#entityframeworkcore-dbmigrations-project
Hi
identity server clients are not isolated from tenants, The client can be a web application. Web application can be multi-tenant.
You can keep migration project, use dotnet ef migrations script
command to generates sql and apply to database(just remove __EFMigrationsHistory
table changes,you should not have this table). see https://docs.microsoft.com/en-us/ef/core/miscellaneous/cli/dotnet#dotnet-ef-migrations-script
You should login to the application as a tenant to create identity server clients.