I have an architectural doubt, I believe.
I need to create a method that receives a date range and an entity on which to perform a search in the period quoted. In fact, to ask this question it matters little what the parameters of this method are. It is important to know that a calculation will be made on this entity using any algorithm.
The question is: where to put this method? In the class itself that represents the entity or in the business class of that entity? I do not know if I could express myself correctly.
I've heard of anemic entities, which would be entities only with the representations of columns and nothing else, without business rules. How to decide this?