Configuration.AddAssembly(Assembly)
is one of the more commonly used methods for loading *.hbm.xml mappings, but it's not the only one. These are all of the "add mappings" methods:
AddAssembly
AddClass
AddDeserializedMapping
AddDirectory
AddDocument
AddFile
AddInputStream
AddMapping
AddResource
AddUrl
AddXml
AddXmlFile
AddXmlReader
AddXmlString
Assuming you have a method named Stream OpenHbm(String)
, I believe something like this should work:
foreach (var hbmName in hbmNames)
using (var stream = OpenHbm(hbmName))
config.AddInputStream(stream, hbmName);