we have keyreference in composite id like below
table(“parent”);
compositeid()
.keyreference(e=>Obj,”sample”);
this generates separate queries for obj for each row in parent. How to solve this problem ?
Mainly how to control fetch startegies(inner join) here for keyreference ?
Please help
you can tweak the keyreferencemapping. the easiest would be to disable lazyloading
it will however use a select instead of join. But using a query NH uses a join
Note: it seems that Linq does eager fetch while QueryOver doesn’t. this does not work