Thanks Fabio, infact I seen that the method body is:
public void AddDeserializedMapping(HbmMapping mappingDocument, string
documentFileName)
{
if (mappingDocument == null)
{ throw new ArgumentNullException("mappingDocument"); }
try
{
NHibernate.Dialect.Dialect dialect =
NHibernate.Dialect.Dialect.GetDialect(this.properties);
...
}
So the mappingDocument is never saved internally in the Configuration class
and I can't retrieve it.
I will dump the mapping before to pass the Configuration to my NH helper
class.
Thanks!