I've searched around but not found what I am doing wrong here.
I have object C which holds a list of object L, object C also holds a reference to class R.
From object L I want to find object R.
I'm trying to do this but I only get null using this code:
L is already an instanced object a function receives.
var t = SessionController.CurrentSession.QueryOver<C>()
.Where(c => c.Id == L.C_Id)
.JoinQueryOver<R>(c => c.R)
.Select(c => c.R).SingleOrDefault();
Any idea what I'm doing wrong here would be appreciated. Thanks
Lis already instanciated, can't you just goL.C.R? - J. Edshow_sqlto true, which will output the running SQL in your console. - gcso