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.

Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
Do you need assistance from an ABP expert?
Schedule a Meeting
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v9.3.0-preview. Updated on April 16, 2025, 12:13