怎么快速的查询数据的总条数 我用下面的方法查询 结果会报错 在query.LoadAsync();的地方
DataServiceCollection<ZX_Elevator> FristEntitiesCount = new DataServiceCollection<ZX_Elevator>(); var query = (from art in SSC.ZX_Elevator select art.id) as DataServiceCollection<ZX_Elevator>; query.LoadAsync(); query.LoadCompleted += new EventHandler<LoadCompletedEventArgs>(Count_LoadCompleted);
在做分页的时候 wcf data service 怎么样做是最快的查询出数据 和 数据总数
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/2005/viewspace-3127318/ ,如需转载,请注明出处,否则将追究法律责任。