Custom validation rules are easy enough to add at the Entity level (that is, in the Entity.cs file). But when more complex validation rules are required, which need to look at other records in the database (either the same table or other tables), the validation rules need to be added at the service layer (in the EntityService.cs file).
For me, at the moment, the steps are:
1) Create method in the EntityService.cs to add custom validation rules to entity
2) Create overrides for each Get method in the service (or at least those I think I'm going to use).
This is rather combersum, and causes problems when I leave a get override out which I later use.
Is it possible to make it so that custom validation rules in the service layer are automatically added to all Get methods?