Open Closed

ABP 9 Upgrade from 8.2.3 #9151


User avatar
0
DominaTang created

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)
  • User Avatar
    0
    EngincanV created
    Support Team .NET Developer

    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.

  • User Avatar
    0
    DominaTang created

    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; }
    
  • User Avatar
    0
    EngincanV created
    Support Team .NET Developer

    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.

Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
Do you need assistance from an ABP expert?
Schedule a Meeting
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v9.3.0-preview. Updated on April 16, 2025, 12:13