title: Automapping doesn't have an Id mapped
body: <pre><code>My Entity Class:
  public class Building 
      {
          /// &lt;summary&gt;
          /// internal Id 
          /// &lt;/summary&gt;
          public virtual long Id { get; set; }
  ..............
  }
  </code></pre>
  
  <p>My Mapping:</p>
  
  <pre><code>var model = AutoMap.AssemblyOf&lt;Building&gt;()
                          .Setup(s =&gt; s.FindIdentity = p =&gt; p.Name == "Id")
                          .Where(t =&gt; t.Namespace == "SpikeAutoMappings");
  
  var database = Fluently.Configure()
                          .Database(DatabaseConfigurer)
                          .Mappings(m=&gt;m.AutoMappings.Add(model));
  </code></pre>
  
  <p>I need somebody to help me see what is wrong because I keep having this error when run unit test:</p>
  
  <pre><code>Initialization method TestProject1.MappingTestBase.TestInitialize threw exception. FluentNHibernate.Cfg.FluentConfigurationException:  FluentNHibernate.Cfg.FluentConfigurationException: An invalid or incomplete configuration was used while creating a SessionFactory. Check PotentialReasons collection, and InnerException for more detail.
  
   ---&gt;  FluentNHibernate.Visitors.ValidationException: The entity doesn't have an Id mapped. Use the Id method to map your identity property. For example: Id(x =&gt; x.Id)..
  </code></pre>