Open Closed

Entity Configuration? #3651


User avatar
0
guven.uysall created
  • ABP Framework version: v5.3.3
  • UI type: Angular
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): no

Hi support, We created our project with Abp Suite. We made our entity configurations(index,dbSchema,TablePrefix,decimal(18,5) column,etc..) in the model builder in DbContext. But when we recreate the same entity with the suite, it deletes the configurations we made for the entity. What is your suggestion for this. Where should we make the entity configurations created with the suite?

Thanks


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

    Hi @guven.uysall, if you want to apply entity configurations (table prefix, column, etc.) to all new generated entities, you can edit the templates from Suite.


    Example: You can edit the Server.Entity.Partials.ConfigureEntity.txt template and add additional configurations for an entity.

    See the documentation.


    If you only want to keep changes for certain entities, you should handle it yourself.

  • User Avatar
    0
    guven.uysall created

    thanks engin.

Made with ❤️ on ABP v9.1.0-preview. Updated on December 12, 2024, 07:15