[SOLVED] Select All Rows Using Entity Framework

Issue

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]();
ptx.[tablename].Select(????)

what goes in the ????

Solution

I used the entitydatasource and it provide everything I needed for what I wanted to do.

_repository.[tablename].ToList();

Answered By – Callum Linington

Answer Checked By – Willingham (BugsFixing Volunteer)

Leave a Reply

Your email address will not be published. Required fields are marked *