Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9153105
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T12:12:31+00:00 2026-06-17T12:12:31+00:00

I am trying to map the following protected collection in my class: public class

  • 0

I am trying to map the following protected collection in my class:

public class AddressList
{
    protected readonly IList<Address> addresses = new List<Address>();
}

With the following mapping:

HasMany<Address>(list => Reveal.Member<AddressList>("addresses"));

But I keep getting a NHibernate.MappingException

NHibernate.MappingException : Could not compile the mapping document: 
(XmlDocument) > NHibernate.PropertyNotFoundException 
: Could not find a getter for property '**Member**' in class

But as you can see in the Reveal.Member I am stating that the propertyname it should be looking for should be “addresses”

I have found this question, the user seems to have the same problem as me only it’s an old question

I have also tried the solution given here

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T12:12:32+00:00Added an answer on June 17, 2026 at 12:12 pm

    You should not use lambdas together with Reveal

    As you see in the exception message:

    NHibernate.MappingException : Could not compile the mapping document:
    (XmlDocument) > NHibernate.PropertyNotFoundException
    : Could not find a getter for property ‘Member‘ in class

    I tries to map to a field named Member as you use list => Reveal.Member instead of just Reveal.Member

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to map two JavaBean structures (here simplified): package foo; public class
Trying to map the following schema using the Entity Framework. A Customer can have
I'm trying to replicate something similar to the following map, where the polygonal area
I'm trying to map a Dictionary containing Lists. I have the following set of
I am trying to map the following key combinations on my keyboard using AutoHotkey
I am trying to map a TreeView to a collection using the HierarchicalDataTemplate. The
I'm new to MVC (and ASP.Net routing). I'm trying to map *.aspx to a
I'm trying to map a Controller with Spring 3.0 without success. I've the following
I'm trying to map a fairly standard category model using EF Code First public
I am trying to map the following scenario: // SourceA + SourceB to not

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.