i need two columns data using linq
my table having number of columns but i need sessiondate, starfixpath columns data using linq plz help me
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.
Pradeep ShetPosted Jul 26, 2014, 3:11 AM
Below code may help you,
var lst = mylist
.Where(x=>x.Column1 == "fdf")
.Select(s=> new { Col1 = s.Column1, Col2 = s.Column2 });
If this answered your question, plz mark it answered