1
Answer

Fetching multiple records using lambda-expressions in EF

lv prasad

lv prasad

10y
1.3k
1
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)