Base solution for your next web application
Open Closed

Extend EntityChanges table (History table) #8165


User avatar
0
digitalcontrol created

We want in EntityChanges table to add few more columns so we can have additional information, like entity name or title not only entityId, and of course to implement the logic for setting values for these additional columns. Do you have any advice how this can be done?


2 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team

    You can extend the EntityChange entity and then override IEntityHistoryHelper. I haven't tried it, you can try it.

    If you encounter any problems, feedback is welcome.

    https://docs.aspnetzero.com/en/aspnet-core-angular/latest/Extending-Existing-Entities-Core-Angular

    https://github.com/aspnetboilerplate/aspnetboilerplate/blob/c0604b9b1347a3b9581bf97b4cae22db5b6bab1b/src/Abp.ZeroCore.EntityFrameworkCore/EntityHistory/IEntityHistoryHelper.cs#L9

    https://github.com/aspnetboilerplate/aspnetboilerplate/blob/133dc584a978d7322eb291cda67e74d39c55790e/src/Abp.ZeroCore.EntityFrameworkCore/EntityHistory/EntityHistoryHelper.cs#L161

  • User Avatar
    0
    ismcagdas created
    Support Team

    This issue is closed because it has not had recent activity for a long time.