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)
-
0
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
-
0
This issue is closed because it has not had recent activity for a long time.