Entity Framework has one beautiful thing for it, like :
var users = context.Users;
This will select all rows in Table User
, then you can use your .ToList()
etc.
For newbies to Entity Framework, it is like :
PortalEntities context = new PortalEntities();
var users = context.Users;
This will select all rows in Table User