This group is for discussion of the development *of* the NHibernate project itself rather than development of your own project *with* NHibernate. Please direct your post to the http://groups.google.com/group/NHUSERS group.
Regards, Steve Bohlen [email protected] http://blog.unhandled-exceptions.com http://twitter.com/sbohlen On Mon, Oct 22, 2012 at 5:44 PM, johnstrez77 <[email protected]> wrote: > I'm working on a website that uses a framework I cannot edit. This > framework user NHibernate with asp.net and C#. It uses an Nhibernate > config file on the site. What I was doing was creating custom DB > tables and a DLL, then mapping them to the config file like I did > below with MyPlugin. What I'd like to do is put my mapping on the site > and my code for the mapping class inside the App_Code folder instead > of creating DLL. In what I do, there is a lot of customizing for each > client and I don't want a huge mess of DLL's. Is there a way I can do > this considering how the site uses the NHibernate config file? > > > <?xml version="1.0" ?> > <hibernate-configuration xmlns="urn:nhibernate-configuration-2.2" > > <session-factory> > <property > name="connection.provider">NHibernate.Connection.DriverConnectionProvider</ > property> > <property name="dialect">NHibernate.Dialect.MsSql2005Dialect</ > property> > <property > name="connection.driver_class">NHibernate.Driver.SqlClientDriver</ > property> > <property name="connection.connection_string_name">MyConnectionString</ > property> > <property name="connection.release_mode">on_close</property> > <property name="show_sql">false</property> > <property name="query.substitutions">true 1, false 0, yes 'Y', no 'N'</ > property> > <property > name="adonet.factory_class">NHibernate.AdoNet.NonBatchingBatcherFactory, > NHibernate</property> > <property name="cache.use_second_level_cache">true</property> > <property name="cache.use_query_cache" >true</property> > <property > name="cache.provider_class">NHibernate.Caches.SysCache.SysCacheProvider, > NHibernate.Caches.SysCache</property> > <mapping assembly="MainFramework"/> > <mapping assembly="MyPlugin"/> >
