Hi,

What is the recommended way of using the new Linq provider? I'm using
the trunk version and trying to do a simple thing: fetch entities by a
foreign key.

So, I've got the Product class and it has the Category property. How
do I fetch all products given a categoryId?
.Where (p => p.Category.Id == categoryId)
or
.Where (p => p.Category == session.Load<Category>(categoryId)
?

Thanks

ulu
-- 
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/nhusers?hl=en.


Reply via email to