2
I have an architectural doubt, I believe.
I need to create a method that receives a period of dates and an entity in which to execute a search in the period cited. In fact, to ask this question it does not matter what the parameters of this method are. It is important to know that a calculation will be made in this entity using some algorithm.
The question is: where to put this method? In the very class that represents the entity or in the business class of that entity? I don’t know if I could express myself correctly.
I have heard of anemic entities, which would be entities only with the representations of the columns and nothing else, without business rules. How to decide this?