Starts in:
2 DAYS
9 HRS
12 MIN
16 SEC
Starts in:
2 D
9 H
12 M
16 S
Open Closed

Module Startup Template #141


User avatar
0
vishalnikam created

Used Module Startup Template to create module. it gives issue on run Update-Database command for the EF Core from Package Manager Console.


8 Answer(s)
  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi, Can you provide steps to reproduce?

  • User Avatar
    0
    vishalnikam created

    https://docs.abp.io/en/commercial/latest/startup-templates/module/creating-a-new-solution

    Created Module Solution without user interface and run Update-Database command for the EF Core from Package Manager Console to generate database. got issue that more than one DbContext found.

    there are two database. how to create those? IssueManagement_Main and IssueManagement_Module

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    I see that your screenshot contains .Web project. Are you sure you are creating a solution without a user interface?

    For --no-ui option:

    1. Set Acme.IssueManagement.HttpApi.Host as startup project and set Acme.IssueManagement.HttpApi.Host as PMC defualt project. Then execute update-database command.
    2. Set Acme.IssueManagement.IdentityServer as startup project and set Acme.IssueManagement.IdentityServer as PMC defualt project. then execute update-database command.

    For has user interface:

    Set Acme.IssueManagement.Web.Unified as startup project and set Acme.IssueManagement.Web.Unified as PMC defualt project. Then execute update-database command.

  • User Avatar
    0
    vishalnikam created

    Hi,

    Yes, i have created a solution without a user interface. given screenshot was just for reference.

    I have run the update-datebase on HttpApi.Host and Idnetityserver but i am able to find only one database _main and not the other _module

    Also when i run the HttpApi.Host project then i got below exception

    Idnetityserver project working fine.

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    I can't reproduce your problem. Can I check your problem remotely?

  • User Avatar
    0
    vishalnikam created

    Hi Yes. We can. Let me know how we can processed

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Do you have teamview?

    You can email to me the connection Id.

    liangshiw@outlook.com

  • User Avatar
    0
    vishalnikam created

    Hi,

    I dont have teamviewer. I have shared skype id on email.

    Thanks

Made with ❤️ on ABP v9.1.0-preview. Updated on November 20, 2024, 13:06