-2

次のクエリをlinqに変換する必要があります。

IEnumerable<User> data = myquery.Future<User>();
IFutureValue<long> count = totalcountQuery.FutureValue<long>();

ありがとう

更新: **

myQuery = session.Query<User>()
               .Skip(pageIndex * pageSize)
               .Take(pageSize);

 totalCount = session.Query<User>().LongCount(); 
 dbUsers = myQuery.ToFuture();
 var count = myQuery.LongCount();
 totalRecords = (int)count.Value; **//Here is the error**

****

4

1 に答える 1

1
IEnumerable<User> data = myquery.ToFuture<User>();
IFutureValue<long> count = totalcountQuery.ToFutureValue<long>();
于 2012-05-29T10:16:42.350 に答える