lv prasad

lv prasad

  • NA
  • 41
  • 4.8k

Fetching multiple records using lambda-expressions in EF

Aug 23 2014 3:31 PM
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)