There seem to be different ways to connect using linq. One of them is simpler and simply involves joining tables as follows:
var found = from c in s.categories join cm in s.categorymaps on c.CategoryId equals cm.ChildCategoryId select c;
There is another way to use lambdas, and I have damn time trying to figure out how to join using this syntax. Can someone provide links to detailed explanations and many examples? Or just demonstrate, using examples, how to use this rather confusing syntax?
var x = _session.All<category>().Join<categorymap,category, ....
join lambda entity-framework
Mason Feb 15 '11 at 22:09 2011-02-15 22:09
source share