クラスで次の保護されたコレクションをマップしようとしています:
public class AddressList
{
protected readonly IList<Address> addresses = new List<Address>();
}
次のマッピングを使用します。
HasMany<Address>(list => Reveal.Member<AddressList>("addresses"));
しかし、私は NHibernate.MappingException を取得し続けます
NHibernate.MappingException : Could not compile the mapping document:
(XmlDocument) > NHibernate.PropertyNotFoundException
: Could not find a getter for property '**Member**' in class
しかし、Reveal.Member でわかるように、探しているプロパティ名は「アドレス」である必要があると述べています。
私はこの質問を見つけました。ユーザーは私と同じ問題を抱えているようですが、それは古い質問です