Open Closed

ABP Generated codes removes the ? for nullable Navigation Properties #4833


User avatar
0
mikeolofernes created

We recently updated the version of ABP from 6.0 to 7.0.3

I added a property using ABP Suite and the issue occured. didnt change anything other than adding a property and a navigational property.

This is the code before:

So when I updated the entity, the ABP Suite removed the ? on the backend codes.

Thanks, Mike

  • ABP Framework version: v7.0.3
  • UI type: Blazor
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): yes
  • Exception message and stack trace:
  • Steps to reproduce the issue:"

1 Answer(s)
  • User Avatar
    0
    yekalkan created
    Support Team Fullstack Developer

    Hi @mikeolofernes,

    Yes, we've made some changes about that.

    I guess the latest code generation has overwriten the existing lookup dtos, and that caused code generated in Suite v6.0.0 to be broken. So, i can suggest you to rename the shared dtos and so they will not be overwritten, then you can generate code in Suite v7.0.3 version.

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