فتح مغلق

Abp Suite don't generate without properties #5034


User avatar
0
caglar.ayhan@ekol.com خلقت
  • 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 إجابة (إجابات)
  • User Avatar
    0
    alper خلقت
    فريق الدعم Director

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

  • User Avatar
    0
    caglar.ayhan@ekol.com خلقت

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

    Yes

  • User Avatar
    0
    alper خلقت
    فريق الدعم Director

    what's your suggestion @yekalkan?

  • User Avatar
    0
    yekalkan خلقت
    فريق الدعم 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 خلقت

    thank you so much

Made with ❤️ on ABP v8.2.0-preview Updated on مارس 25, 2024, 15:11