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

Made with ❤️ on ABP v9.1.0-preview. Updated on December 13, 2024, 06:09