I am not very savvy with loading assemblies and stuff, so this is the best I could do:
Code:
Configuration config = new Configuration();
config.Configure(
System.Configuration.ConfigurationManager.AppSettings["nhibernate.config"]);
NHibernate.Tool.hbm2ddl.SchemaExport schemaExport =
new NHibernate.Tool.hbm2ddl.SchemaExport(config);
schemaExport.Create(true, false);
However this approach required the assembly to be included with my program and thus the program is specific to this assembly. I was looking to find or write something more generic that could load any config file and assembly at runtime. Any pointer in the right direction would be much appreciated. Thanks.