If you are using nh 3.2 then why not try mapping by code? You can just
create .cs classes for your mappings which can be part of you sln

However I am not sure of your reasoning...

Sent from my iPad

On 22 Oct 2012, at 23:06, 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"/>
>
> --
> You received this message because you are subscribed to the Google Groups 
> "nhusers" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
> For more options, visit this group at 
> http://groups.google.com/group/nhusers?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/nhusers?hl=en.

Reply via email to