NHibernate - access the ID of an associated object without lazy loading the whole object

前端 未结 3 1342
北恋
北恋 2020-12-16 05:04

I have two associated business objects - A and B. the association is (A->B)many-to-one, with B.Id a foreign key in A (so A has A.B_id in the DB).

I\'m using lazy=tru

3条回答
提交回复
热议问题