T
Tony
Hello!
I have a DataSet collection that have two columns named pkid and name. The
DataSet can look like this
pkid name
2 Admin
34 Dormant
23 Polen
26 Special
I just want to fetch pkid for the name Dormant. I have done so here by using
the var variable dormant in the result set.
I hope someone can tell me how I should write the linq query to get just the
pkid for name Dormant without using the var variable.
var dormant = from o in ds.Tables[0].AsEnumerable()
where o.Field<string>("Name").ToLower() ==
"dormant"
select o;
//Tony
I have a DataSet collection that have two columns named pkid and name. The
DataSet can look like this
pkid name
2 Admin
34 Dormant
23 Polen
26 Special
I just want to fetch pkid for the name Dormant. I have done so here by using
the var variable dormant in the result set.
I hope someone can tell me how I should write the linq query to get just the
pkid for name Dormant without using the var variable.
var dormant = from o in ds.Tables[0].AsEnumerable()
where o.Field<string>("Name").ToLower() ==
"dormant"
select o;
//Tony