Hello everyone.

I'm debugging some simple nhibernate unit tests in order to get a better 
idea of how the HqlTree and Linq Generators work.

My test is something like this:

IEnumerable<string> valuesToCheck = new[] { "nhibernate", "core", "ayende" 
}.ToList();
var myQuery = db.Orders
.SelectMany(x => x.OrderLines)
.Where(x => valuesToCheck.Contains(x.Id.ToString()));

var query = myQuery.ToList();

I was expecting to see the BuildHql of the CollectionContainsGenerator get 
executed, however the ProcessContains is executed instead. I'm trying to 
customize the generated sql for a Contains call, and I don't exactly 
understand why the Contains generator is not getting called.

Do I have to call the Contains method in some special way in order to get 
the generator called?

Thanks in advanced!

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"nhibernate-development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to nhibernate-development+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/nhibernate-development/bcdff508-a6d1-4419-b438-1a0731a140f6n%40googlegroups.com.

Reply via email to