1
I have a database connection using the Entity Framework.
The code is as follows:
public IQueryable Empresas()
{
int idUser = Int32.Parse(self.IdUser());
var res = from s in db.EmpresaUsuario
join c in db.Empresas on s.EmpSequencia equals c.EmpSequencia
where s.UsuSequencia == idUser
select c;
return res;
}
How do I read the return of the database using this method?
I didn’t understand if the query has already been submitted or if I have to submit to the database and how do I read the return