What does the below code actually do in NHibernate:
<mapping assembly="Sample" /> //in the config file
OR
Configuration config = new Configuration();
config.AddAssembly("Sample"); //in the code file
Also does this "Sample" correspond to the the main namespace of the Project in .NET or can it be the name of any Business Object in our application?
you can have .hbm.xml files spread out to many assemblies. So either way, instructs NHibernate from where to load those files.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With