title: Could not find property nor field
body: <p>I have created private field and initializing it in constructor of class.</p>
  
  <pre><code>#region "Private Fields"
  
  private readonly IList&lt;Ethnicity&gt; _ethnicities;
  private readonly IList&lt;Contact&gt; _contacts;
  private readonly IList&lt;Address&gt; _addresses;
  private readonly IList&lt;Dependent&gt; _dependents;
  private readonly IList&lt;InsuredType&gt; _insuredTypes;
  private const string PrimaryEmailCode = "EML";
  private const string SecondaryEmailCode = "EM2";
  private const string HomePhoneCode = "HPH";
  private const string CellPhoneCode = "CPH";
  private const string PrimaryInsured = "PRIMARY";
  private const string DependentInsured = "DEPENDENT";
  private const string PermenantAddressCode = "PERM";
  private const string MailingAddressCode = "MAIL";
  
  #endregion
  
  #region "Constructors"
  public Insured()
  {
      _ethnicities = new List&lt;Ethnicity&gt;();
      _contacts = new List&lt;Contact&gt;();
      _addresses = new List&lt;Address&gt;();
      _dependents = new List&lt;Dependent&gt;();
      _insuredTypes = new List&lt;InsuredType&gt;();
  }
  
  #endregion
  
  #region "Public Properties"
  
  public virtual IEnumerable&lt;InsuredType&gt; Insuredtypes
  {
      get { return _insuredTypes; }
  }
  
  public virtual string InsuredType
  {
      get
      {
          if (InsuredStatus == "ACTIVE")
          {
  
              var type = _insuredTypes.FirstOrDefault(n =&gt; n.ExpiryDate &gt; DateTime.Now);
              if (type != null)
              {
                  var status = type.InsuredTypeDescription == "PRIM" ? PrimaryInsured : DependentInsured;
                  return status;
              }
          }
  
          if (InsuredStatus == "EXPIRED" || InsuredStatus == "MERGED")
          {
              var type =
                  _insuredTypes.Where(n =&gt; n.ExpiryDate &lt; DateTime.Now)
                               .OrderByDescending(n =&gt; n.ExpiryDate)
                               .FirstOrDefault();
              if (type != null)
              {
                  var status = type.InsuredTypeDescription == "PRIM" ? PrimaryInsured : DependentInsured;
  
                  return status;
              }
          }
          return string.Empty;
      }
  }
  </code></pre>
  
  <p>When I run it, I get an exception that <code>_insuredTypes could not found in Insured class</code>.</p>
  
  <p>Can anyone point out what am I doing wrong?</p>
  
  <p>Here is the mapping of Insured Class </p>
  
  <pre><code>internal class InsuredMap : CacheableEntityClassMap&lt;Entities.Insured&gt;
  {
      public InsuredMap()
      {
          ReadOnly();
  
          Table("Insured");
          Id(x =&gt; x.Id, "InsuredId");
  
          Map(x =&gt; x.Gender,Convert.ToString("SexCd")).CustomType&lt;TrimmedStringUserType&gt;();
          Map(x =&gt; x.GradDate,    Convert.ToString("GradMthYrNum")).CustomType&lt;TrimmedStringUserType&gt;();
          Map(x =&gt; x.SrId, Convert.ToString("SIDIdNum")).CustomType&lt;TrimmedStringUserType&gt;();
          Map(x =&gt; x.SchoolId, Convert.ToString("SchoolIdTxt")).CustomType&lt;TrimmedStringUserType&gt;();
          Map(x =&gt; x.Ssn, Convert.ToString("SocSecNumTxt")).CustomType&lt;TrimmedStringUserType&gt;();
          Map(x =&gt; x.DateOfBirth,    Convert.ToString("BirthDt")).CustomType&lt;TrimmedStringUserType&gt;();
          Map(x =&gt; x.ExpDt, ("ExpDt"));
  </code></pre>
  
  <p>And here is mapping of insured types</p>
  
  <pre><code>HasMany(x =&gt; x.Insuredtypes)
      .KeyColumn("InsuredId")
      .LazyLoad()
      .Inverse()
      .Cascade.All();
  </code></pre>