- 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)
-
0
so you have only navigation property. no other properties right?
-
0
so you have only navigation property. no other properties right?
Yes
-
0
what's your suggestion @yekalkan?
-
0
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.
-
0
thank you so much