Micro Services application.
For the ABP 9 project templated created by ABP studio. There are new micro services created, audit-logging and language. When I upgrade existing ABP 8 solution, do I have to add these two new micro services to solution?
In administration micro service, there are three new connection strings added, do I have to add them when upgrading? "AuditLoggingService": "Server=localhost,1434; User Id=sa; Password=myPassw@rd; Database=Ess_AuditLoggingService; TrustServerCertificate=true; Connect Timeout=240;", "LanguageService": "Server=localhost,1434; User Id=sa; Password=myPassw@rd; Database=Ess_LanguageService; TrustServerCertificate=true; Connect Timeout=240;", "AbpBlobStoring": "Server=localhost,1434; User Id=sa; Password=myPassw@rd; Database=Ess_BlobStoring; TrustServerCertificate=true; Connect Timeout=240;"
In Administration Db context, ABP 9 code:
[ConnectionStringName(DatabaseName)] [ReplaceDbContext( typeof(IPermissionManagementDbContext), typeof(IFeatureManagementDbContext), typeof(ITextTemplateManagementDbContext), typeof(ISettingManagementDbContext) )] public class AdministrationServiceDbContext : AbpDbContext<AdministrationServiceDbContext>, IPermissionManagementDbContext, IFeatureManagementDbContext, ISettingManagementDbContext, ITextTemplateManagementDbContext, IHasEventInbox, IHasEventOutbox
ABP 8 code: [ConnectionStringName(AdministrationServiceDbProperties.ConnectionStringName)] public class AdministrationServiceDbContext : AbpDbContext<AdministrationServiceDbContext>, IPermissionManagementDbContext, ISettingManagementDbContext, IFeatureManagementDbContext, IAuditLoggingDbContext, ILanguageManagementDbContext, ITextTemplateManagementDbContext, IBlobStoringDbContext
Do I have to modify DbConext accordingly?
3 Answer(s)
-
0
For the ABP 9 project templated created by ABP studio. There are new micro services created, audit-logging and language. When I upgrade existing ABP 8 solution, do I have to add these two new micro services to solution?
No, you don't have to add them.
In administration micro service, there are three new connection strings added, do I have to add them when upgrading?
You don't need to add these connection strings if you don't have the related services. Since, you don't have the audit-logging and language services then you don't need to add their connection strings.
Do I have to modify DbConext accordingly?
Actually, you don't need to modify the DbContext, it should work seamlessly.
Best regards.
-
0
What about new tables created in Administration and Identity MicroService:
public class IdentityServiceDbContext : AbpDbContext, IIdentityProDbContext, IOpenIddictDbContext, IHasEventInbox, IHasEventOutbox public DbSet IncomingEvents { get; set; } public DbSet OutgoingEvents { get; set; }
-
0
What about new tables created in Administration and Identity MicroService:
public class IdentityServiceDbContext : AbpDbContext, IIdentityProDbContext, IOpenIddictDbContext, IHasEventInbox, IHasEventOutbox public DbSet IncomingEvents { get; set; } public DbSet OutgoingEvents { get; set; }
Hi, you can refer to our migration guides (https://abp.io/docs/9.2/release-info/migration-guides). Typically, you don't need to add any additional code to your solution, and you don't need to modify the dbcontext class. But, if you want to align your microservice solution, then you can create a new ms template in v9 and compare the changes and apply it to your codebase, but it's totally optional.
Regards.