title: NHibernate DuplicateMappingException when two classes have the same name but different namespaces
body: <p>I have a class in my domain model root that looks like this:</p>
  
  <pre><code>namespace Domain
  {
    public class Foo { ... }
  }
  </code></pre>
  
  <p>I also have another class with the same name in a different namespace:</p>
  
  <pre><code>namespace Domain.SubDomain
  {
    public class Foo { ... }
  }
  </code></pre>
  
  <p>For my mappings, I have a <code>Mapping</code> directory with a subdirectory called <code>SubDomain</code> that contains mappings for the domain classes found in <code>Domain.SubDomain</code> namespace.  They are all in the same assembly.</p>
  
  <p>However, when I try to load them with NHibernate, I keep getting a <code>DuplicateMappingException</code>... even though both Foos having different namespaces.  The code I am using to load my NHibernate configuration is this:</p>
  
  <pre><code>var cfg = new Configuration()
    .Configure()                
    .AddAssembly("Domain");   
  </code></pre>
  
  <p>How can I tell NHibernate to let me use two entities with the same name (but different namespaces)?</p>