Open Closed

ABP Suite - Editing Templates #6021


User avatar
0
fernando.guilherme created
  • ABP Framework version: v7.2.3
  • UI Type: Angular
  • Database System: EF Core (SQL Server)
  • Tiered (for MVC) or Auth Server Separated (for Angular): no
  • Exception message and full stack trace:
  • Steps to reproduce the issue:

Hi,

I need help with editing ABP SUite Templates.

I'm creating a property called IsActive. How do I check if this property exists in the Server.Entity.Entity.txt template.

I need to do an if and if the property exists I need to insert the following method into the code:

public virtual void SetIsActive(bool isActive) { IsActive = isActive; }

can you help me?


1 Answer(s)
  • User Avatar
    0
    EngincanV created
    Support Team .NET Developer

    Hi, currently this is not possible by editing templates. Instead, if it's possible you can update your application to v7.4.0, re-generate the related entity with custom code support, and make the related customization in your *Entity.Extended.cs class in your domain layer.

    See the blog post for more information (Suite: Custom Code Support section).

Made with ❤️ on ABP v8.2.0-preview Updated on March 25, 2024, 15:11