Hi
IN below query there r 2 records in View_Header . but it shows 0 in tt. In below query i wants to add where Clause also.
List tt = new List();
tt.Select(x => new { x.ID, x.Name }).ToList();
Thanks
Hi
IN below query there r 2 records in View_Header . but it shows 0 in tt. In below query i wants to add where Clause also.
List tt = new List();
tt.Select(x => new { x.ID, x.Name }).ToList();
Thanks
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Jignesh KumarPosted Mar 16, 2022, 9:16 AM
Jagjit SainiPosted Mar 16, 2022, 9:38 AM
Muhammad Imran AnsariPosted Mar 16, 2022, 9:36 AM
Jagjit SainiPosted Mar 16, 2022, 9:20 AM
Hi Jignesh
Below is the code. I want to list only 2 columnc
public List GetList()
{
List Result = (from t in context.View_Headers
where t.IsActive == true
select t).ToList();
return Result;
}
Thanks