打开 关闭

How to add a module that I created using ABP Suite in one solution to a different solution. #7123


User avatar
0
innovawide 创建

How to add a module that I created using ABP Suite in one solution to a different solution. * ABP Framework version:7.2.1

  • UI Type: Angular
  • Database System: EF Core (SQL Server, Oracle, MySQL, PostgreSQL, etc..)
  • Tiered (for MVC) or Auth Server Separated (for Angular): yes

7 答案
  • User Avatar
    0
    liangshiwei 创建
    支持团队 Fullstack Developer

    Hi,

    Suite doesn't support this, you need to add your module to solution manually

  • User Avatar
    0
    innovawide 创建

    I need to know how I can manually add it to another solution. After integrating it into the new solution, can I modify it using a suite or not?

  • User Avatar
    0
    liangshiwei 创建
    支持团队 Fullstack Developer

    can I modify it using a suite or not?

    Of course, you can.

  • User Avatar
    0
    innovawide 创建

    I need to know how I can manually add it to another solution

  • User Avatar
    0
    liangshiwei 创建
    支持团队 Fullstack Developer

    Add Module's Application project reference to another solution's Application project.

    And configure the module dependencies

    [DependsOn(
        .....
        typeof(ModuleApplicationModule)
        )]
    public class AnotherSolutionApplicationModule : AbpModule
    {
    }
    

    Do the same thing above for other projects(Application.Contract , Domain , Domain.Shared, EntityFrameworkCore, HttpAPi, HttpApi.Client ...)

    Config EntityFrameworkcore project

    public class AnotherSolutionDbContext: ...
    {
        protected override void OnModelCreating(ModelBuilder builder)
        {
            builder.ConfigureModule();
        }
    }
    
  • User Avatar
    0
    innovawide 创建

    What about the frontend side (Angular)? Will it be generated automatically or what?

  • User Avatar
    0
    liangshiwei 创建
    支持团队 Fullstack Developer

    Hi,

    There two ways to add Angular part.

    1. Publish angular code to NPM or NPM npm server, Then install it via NPM package
    2. Copy code to the another solution's Angular project.

    Config the Angular module, you can refer to : https://docs.abp.io/en/commercial/latest/modules/chat#angular-ui

Made with ❤️ on ABP v8.2.0-preview Updated on 三月 25, 2024, 15:11