Open Closed

Abp Suite don't generate without properties #5034


User avatar
0
caglar.ayhan@ekol.com created
  • ABP Framework version: v5.3.3
  • UI type: Angular
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): yes
  • Exception message and stack trace:
  • Steps to reproduce the issue:"

I have tried to create a new "Entity" by using the Abp Suite tool but ran into a problem. Although the "Save and Generate" button is active when we add only "Properties", it is not active when we add only "Navigations" (we don't want to add "properties"). Of course, there are several solutions to this (first, add an unnecessary property and then delete it from the code, or add "properties" instead of "navigations" and then modify it in the code). The former solution is so time-consuming, the latter is not the best(I think) Do you have any way that you know to solve this problem?


5 Answer(s)
  • User Avatar
    0
    alper created
    Support Team Director

    so you have only navigation property. no other properties right?

  • User Avatar
    0
    caglar.ayhan@ekol.com created

    so you have only navigation property. no other properties right?

    Yes

  • User Avatar
    0
    alper created
    Support Team Director

    what's your suggestion @yekalkan?

  • User Avatar
    0
    yekalkan created
    Support Team Fullstack Developer

    As @caglar.ayhan said, it is not possible to generate an entity without a property. And only way to workaround this is also explained by @caglar.ayhan.

    We can not simply enable the generate button, because code generation process assumes that there are at least one property and without a property there will be compile errors on many places in the generated code. So we have to work on this if we want to allow generation without property.

  • User Avatar
    0
    caglar.ayhan@ekol.com created

    thank you so much

Made with ❤️ on ABP v9.1.0-preview. Updated on December 12, 2024, 07:15