title: Fluent NHibernate does not call my ClassMap<ControlEntity> class
body: <p>I use NHibernate for a dynamic website that its modules can be loaded dynamically, so when I want to build a sessionFactory, I use a way to find all assemblies and sort them with their dependencies
  after all, I add them to Configuration instance I created and it works.
  Now I want to change configuration type from hbm.xml files to fluent
  I added below codes:</p>
  
  <pre><code> sessionFactory =
      Fluently
      .Configure()
      .Database(
          FluentNHibernate.Cfg.Db.MsSqlConfiguration.MsSql2008.ConnectionString(
              c =&gt;  c.FromAppSetting("connectionString")
          )
      )
      .Mappings(
          m =&gt; m.AutoMappings.Add(
              AutoMap.Assemblies(
                  new FarayanConfig(),
                  assembliesArray
              )
          )
     ).BuildSessionFactory();
  </code></pre>
  
  <p>FarayanConfig is:</p>
  
  <pre><code>class FarayanConfig : DefaultAutomappingConfiguration
  {
      public override bool ShouldMap(Type type)
      {
          return type.Name.EndsWith("Entity");
      }
      public override bool IsVersion(FluentNHibernate.Member member)
      {
      return member.Name == "Version";
      }
  }
  </code></pre>
  
  <p>also I have a class in an assembly that will be loaded by this code (notice that assembly is not referenced, will be loaded dynamically) with a class named ControlEntity and also another class:</p>
  
  <pre><code>public class ControlEntityMap : ClassMap&lt;ControlEntity&gt;
  {
      public ControlEntityMap()
      {
          HasMany(x =&gt; x.Properties).Component(c =&gt; {
              c.Map(v =&gt; v.Culture);
              c.Map(v =&gt; v.Name);
              c.Map(v =&gt; v.Value);
          });
      }
  }
  </code></pre>
  
  <p>now the problem is constructor of ControlEntityMap will not execute!
  what I must do?</p>