标签:
IEnumerable<DataRow> q =
from
dr
in
dt.AsEnumerable()
where
dr.Field<
int
>(
"ID"
).ToString() == "1"
select
new;
IEnumerable<DataRow> q = dt.AsEnumerable().Where<DataRow>(r => (r.Field<
int
>(
"ID"
).ToString() == "1"
));
标签:
原文地址:http://www.cnblogs.com/xsj1989/p/5518836.html