abstract methods inside EF core queries - C#