문제

I have a question. I have this query:

 var query = QueryOver.Of<Item>()
                .JoinQueryOver<ItemRelation>(p => p.ItemRelation)
                .Where(r => r.Item1.Id == itemId)

How can I return only Item entity but not Item Relation?

Thanks

도움이 되었습니까?

해결책

The query actually should only return Predmet ... The RelacijaPredmeta is a property of it. If you don't want to load it, use lazy loading, or select the properties of Predmet individually.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top