Handling Entity Framework Data Using C#

Asked

Viewed 31 times

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

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.