1
Reply

Fetching multiple records using lambda-expressions in EF

lv prasad

lv prasad

Aug 23 2014 3:31 PM
763
Hi ,

How can i fetch multiple rows from a single table and store in a list object. by using Lambdaexpression.

Below is the Expression i am using form Single :
 int sid = int.Parse(txtsearch.Text);
 sample objsam = db.samples.Single(sa => sa.id == sid);
            txtName.Text = objsam.Name;
            txtAddress.Text = objsam.Address;

i want to fetch multiple rows from single table and store in a list object and i want to bind to Gridview.

Answers (1)