I am aware of the possibility to map a function to a static method on the DbContext in Entity Framework Core, but i am trying to avoid static methods, such that the method can b