WIth Ria Service,我有一个
linq查询,如:
EntityQuery<Employee> query = from e in ctx.GetEmployeeQuery() orderby e.DateCreated descending select e;
那么我想从这个查询中获取前100条记录,比如sql
从员工中选择前100名*
如何编写linq查询?
解决方法
EntityQuery<Employee> query = (from e in ctx.GetEmployeeQuery() orderby e.DateCreated descending select e).Take (100);