I could have verified that this behavior appears only when the function has been included in the code include ().
The complete code of my function is the following one:
Code: Select all
public List ObtainAll(string keyOrder, string[] rutas, int indicePagina, int contadorPagina)
{
ObjectQuery cons = null;
cons = CreateQuery(contexto);
//rutas
foreach (string cad in rutas)
{
cons = cons.Include(cad);
}
if (clavesOrdenacion != null)
{
var cons1 = cons.OrderBy(keyOrder).Take(contadorPagina);
return cons1.ToList();
}
return cons.ToList();
}
Well then, if I comment on the line that contains the function Include () the answer is absolutely correct. That is to say, the not wished behavior is produced when the entity to consulting includes properties of navigation, as it happens in this case.
Since I have commented in another thread, these behaviors have begun to produce immediately after the installation of the version 5.25, in the previous installed version it was working quite normally.