title: NHibernate in the configuration can not see anything
body: <p>I need help with configuring NHibernate. In my solution has several projects: first contains the code entity, second contains the mapping files "*.hbm.xml".</p>
  
  <p>I configure through code. Here it is:</p>
  
  <pre><code>    Configuration config = new Configuration().
          Proxy(proxy =&gt; proxy.ProxyFactoryFactory&lt;ProxyFactoryFactory&gt;()).
          DataBaseIntegration(db =&gt;
                                  {
                                      db.Dialect&lt;MsSql2008Dialect&gt;();
                                      db.ConnectionString = @"Data Source=(local)\SQLEXPRESS;Initial Catalog=MyDB;Integrated Security=True;Pooling=False";
                                      db.BatchSize = 100;
                                  }).AddAssembly("MyProject.DAL.Mappings");
  </code></pre>
  
  <p>This code does not create tables in the database:</p>
  
  <pre><code>SchemaExport schemaExport = new SchemaExport(configuration);
  schemaExport.Create(false, true);
  </code></pre>
  
  <p>This code creates an empty file:</p>
  
  <pre><code>SchemaExport schemaExport = new SchemaExport(configuration);
  schemaExport.SetOutputFile(@"db.sql").Execute(false, false, false);
  </code></pre>
  
  <p>It seems that NHibernate can not "pick up" mapping files. Why?</p>
  
  <p>Thanks in advance!</p>