Open Closed

ABP Suite deletes my domain code #4635


User avatar
0
inavarro.cp created
  • ABP Framework version: v6.0.2
  • UI type: MVC
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): no
  • Exception message and stack trace:
  • Steps to reproduce the issue:"

Hi everybody, I have a class FeedOrderHeader that doesn't have any String property, i have to create a 1..N relationship with FeedOrderLines. As ABP Suite only allows relationships with String properties, I had created a property in the FeedOrderHeader Domain called NameToShow to be able to relate them, the problem is that every time I generate with ABP Suite it deletes all the Domain code I created. Is there any other way to do it?

thank you very much and happy coding :)


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

    Hi,

    ABP Suite overwrites the classes that it creates. So to overcome this, you can create partial classes with different filenames

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.2.0-preview. Updated on March 17, 2025, 10:38