I have my next query in c # I'm using the ADO.NET Entity Framework 4, my query I just want to get the data of two specific columns.
public List<clsSalidas> Listar()
{
try
{
var lista = contexto.ExecuteStoreQuery<clsSalidas>("Select T_Doc, C_F from SALIDASDOC");
return lista;
}
catch (Exception)
{
throw;
}
}
but it shows me the following message
No se puede convertir implícitamente el tipo
'System.Data.Objects.ObjectResult<Entidades.clsSalidas>' en
'System.Collections.Generic.List<Entidades.clsSalidas>'
As you can see, I can not find how to solve it. I hope you help me.