Hi friends.
I have a query like this:

-----------------

var query = session.Query<Entity>().Take(100);

if (condition)
{
   query = query.Where(x => x.Name.StartWith("A"));
}

var result = query.ToList();

-----------------

I would like to know, if in the queryable Take method execute my query
before ToList() method?

I want to know because I have more than 100 records in the table and it is
spread on database and it just take 10 records starting with "A". If Yes,
what is the best approuch to do it?


Thank you.


-- 
______________________________________
Felipe B Oriani
felipeoriani.com.br [email protected]

-- 
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/nhusers.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to