A generic repository for entity framework RUDI functions