Hi people.
I´m have a problem using EF for my data model.
I have this code in my method:
listaPaginada = sortOrder.Equals("asc") ?
_cadastroServ.SelecionaNotasFiscais(idParceiro).OrderBy(i => i.GetType().GetProperty(query)) :
_cadastroServ.SelecionaNotasFiscais(idParceiro).OrderByDescending(i => i.GetType().GetProperty(query));
i´m using the same method hear to:
Func<NotaFiscal, bool> whereClause = (i => i.GetPropValue<string>(sortName).Contains(query));
listaPaginada = sortOrder.Equals("asc", StringComparison.CurrentCultureIgnoreCase) ?
_cadastroServ.SelecionaNotasFiscais(idParceiro).Where(whereClause).OrderByDescending(i => i.GetPropValue<IComparable>(sortName)) :
_cadastroServ.SelecionaNotasFiscais(idParceiro).Where(whereClause).OrderBy(i => i.GetPropValue<IComparable>(sortName));
In L2SQL the method GetPropValue exists, but in L2E not.
Someone knows a similar method in L2E ? or knows how to solve this ?
Regards[]