私はこのようなテーブル構造を持っています
table Collection
Id
Name
table Product
Id
Name
table Item
Id
Collection_Id
Product_Id
私が望むのは、上記のコレクションを次の名前の単一のクラスにマップすることです。
Class Collection
Id
Name
List<Product> Products
そして私は製品クラスを持っています:
Class Product
Id
Name
流暢な nhibernate でそれを行うにはどうすればよいですか? 誰でも何か考えがありますか?