摘要: var p = DataTable.AsEnumerable().Where(t => t.Field("ChannelID") == int.Parse(code)).Select(d => d); if (p != null && p.Count() > 0) { return p.Select(c => c.Field("name")).First(); } else { return ""; } 阅读全文
posted @ 2014-02-24 14:52 yellowshorts 阅读(9278) 评论(0) 推荐(1) 编辑