Loading Multiple Hbm Files Through Configuration.AddXmlFile

23 views
Skip to first unread message

David Ackroyd

unread,
Jul 29, 2019, 11:13:10 AM7/29/19
to nhusers
Hi All,

I was wondering if there was any way to add a list of xml files all at once, rather than calling AddXmlFile on each file? For various reasons I can't add the mapping files as an embedded resource, and the application I'm working on currently adds all the files in my mappings directory alphabetically (so if a file depends on a superclass that has not yet been mapped, an error is thrown). Is there any way of doing this?

Apologies if this has been covered in the docs but I couldn't see anything. If there's no way of doing this I'd be happy to amend the configuration class so that it can be done and create a pull request.

Kind Regards,

David 

Oskar Berggren

unread,
Jul 29, 2019, 11:19:19 AM7/29/19
to nhusers
File names:
0001-whatevber.hbm
0002-whatever.hbm
and so on.

--
You received this message because you are subscribed to the Google Groups "nhusers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nhusers+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/nhusers/ffabbc4d-3f15-4971-aba5-6bf072fde354%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages