I'm beginning working with repository pattern. When it comes to simple queries I don't have problems with names.
If a method retrieves data filtered by two values also I can name it properly.
Also when there are very advanced filters I just name it as follows.
(and pass search criteria object)
But I have a problem with naming methods like that:
- Get data filtered by three or four values (GetByNameAndSurnameAndDayAndCountry)
- Get data using comparison (GetByDateGreatherThan)
- Mixed (GetByCreateDateGreatherThanAndNameAndSurname)
Is there any good pattern I can use to name such methods?