I am trying to refractor an old .Net Core MVC codeset with repetitive loops of if/else\'s, to construct EF IQueryable, with the below dynamic expresssion.