I'm trying to sort a list using the System.Linq.Dynamic
library, it follows the snippet of code:
list = db.TABELA.Where(consulta.Colum + ".Contains(@0) ",
consulta.filtro).OrderBy("@0 ", "codigo").Take(10).ToList();
but the result, in this case, is always the same, I have already tried in some ways ( DESC, ASC
), it comes the original ordering of the bank. I'm trying to sort in descending order and I can not. Can someone help me? Thank you in advance!