I\'m trying to select all the rows out of a database using entity framework for manipulation before they\'re sent to the form
var ptx = [modelname].[tablename]()
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