标签:linq sel ext enter contains sem where new mod
var enterpriseModel = enterpriseList.Where(m => m.Name.Contains(keyword))
.Take(10).Select(
m => new
{
id = m.Id,
text = m.Name,
desc = m.Name
}).ToList();
标签:linq sel ext enter contains sem where new mod
原文地址:http://www.cnblogs.com/gust/p/6737019.html