2012-05-25 4 views
-2

다음 쿼리를 linq으로 변환해야합니다.Nhibernate 기준 미래 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** 

**

답변

1
IEnumerable<User> data = myquery.ToFuture<User>(); 
IFutureValue<long> count = totalcountQuery.ToFutureValue<long>();