title: Fluent NHibernate mapping exception (no persister error)
body: <p>I have the following code which gives me a mapping exception with no persister error:</p>
  
  <pre><code>var sessionFactory = Fluently.Configure()
      .Database(
          OracleClientConfiguration.Oracle10.ConnectionString(
              c =&gt; c.FromConnectionStringWithKey("Main.ConnectionString")))
      .Mappings(x =&gt; x.FluentMappings.AddFromAssembly(Assembly.GetExecutingAssembly()))
      .BuildSessionFactory();
  
  using (var session = sessionFactory.OpenSession())
  {
      using (var tx = session.BeginTransaction())
      {
          var card = new Card {CardType = "Test"};
  
          session.Save(card);
  
          tx.Commit();
      }
  }
  </code></pre>
  
  <p>I have three projects in my solution: <code>MainApplication</code> , <code>Entities</code> and <code>EntityMappings</code></p>
  
  <p><code>MainApp</code> has a reference to <code>Entities</code> and <code>EntityMappings</code> has a reference to <code>Entities</code></p>
  
  <p>I don't understand what I am doing wrong. Any ideas ?</p>
  
  <p><strong>EDIT:</strong></p>
  
  <p>The properties are <code>public</code></p>
  
  <p>The exact error message is : <code>No persister for: TNT_DAL.EntityClasses.Card</code></p>