title: adding an nHibernate mapping at run time?
body: <p><strong>Background:</strong></p>
  
  <p>I'm getting a mapping failure when trying to use nHibernate. The application consists of several assemblies. One of the assemblies is a library of useful routines and the other is application code that uses the library. The library assembly adds itself to the nHibernate configuration but since it doesn't know about other assemblies it doesn't add them. My xml mapping file is located in the application assembly. I think it's not finding it because it's not looking in the application assembly.</p>
  
  <p><strong>Question:</strong>
  Can you map to a class in an arbitrary assembly without adding it to the configuration?</p>
  
  <p>If not, can you add a mapping at run time?</p>
  
  <p>Thanks</p>
  
  <p>p.s.
  I did make sure the mapping file was marked as an embedded resource</p>
  
  <hr>
  
  <p><strong>Update - Apr 3 '09</strong>  </p>
  
  <p>I changed the underlying library to allow adding assemblies at initialization. That seems to work just great.</p>