Thank you. I have verified this additional piece of code made it work.
I found what I was looking for in the docs. Initially looked in the wrong place.
https://docs.abp.io/en/abp/latest/Module-Entity-Extensions