2023年5月11日

IQueryable 和 IEnumerable

摘要: 阅读全文

posted @ 2023-05-11 23:07 itjeff 阅读(17) 评论(0) 推荐(0)

LINQ使用细节之.AsEnumerable()和.ToList()的区别

摘要: 先看看下面的代码,用了 .AsEnumerable(): 1 var query = (from a in db.Table2 where a = SomeCondition3 select a.SomeNumber).AsEnumerable();4 5 int recordCount = que 阅读全文

posted @ 2023-05-11 22:42 itjeff 阅读(388) 评论(0) 推荐(0)

导航