Due to partial belief issues, we are currently in the process of fixing nihberate fluent with our application. We are going to the unit framework 5.1 RC using our fluent API.
We have the following method in our repositories, and I am trying to figure out whether the same query can be written using the Entity Framework? I'm clearly looking to be as efficient as possible.
Public PagedList & lt; Subject & gt; GetRecentTopics (int page indexes, int pages, int breaks down) {// Count of a delay line var puncticount = session. Click on & lt; Subject & gt; () Select Select (Projections. Route ()) .Cacheable () .FutureValue & lt; Int & gt; (); // Get a topic using an efficient query var result = session. Session Trend & gt; Subject & gt; (). Orderbay (x = & gt; x.CreateDate) .Desc. () Cacheable (). Futures & lt; Subject & gt; (). ToList (); // We only want to display the top 100 / but may not be 100 topics var var = rowCount.Value; If (for the total & gt; sum) {total = amountToTake; } // Return a paged list New Pejdlist & lt; Subject & gt; (Results, page index, pageisms, total); } Any help / indication greatly appreciated.
AFAIK EF query is not batching You can do that which is difficult.
Alternatively, you can get the NH to work under Central Trust, information. In the comments of
, DHLH working under the Middle Trust has not got my test).
Comments
Post a Comment