Specify different table name in configuration (NHibernate 2.1)

35 views
Skip to first unread message

Werner Clausen

unread,
Feb 2, 2012, 3:27:36 AM2/2/12
to nhu...@googlegroups.com
Hi,
 
I'm using NHibernate 2.1.0.4000 indirectly through NServiceBus. NServiceBus has a class called "Subscription" that implements ClassMap<Subscription>. NServiceBus uses NHibernate to serialize that class to MSSQL and I guess NHibernate uses the class name as table names. From what I can Google, it would be possible to change the table name using "Table(string tableName)" in the ClassMap constructor. But as I do not want to change NServiceBus code, I wonder if it is possible to change the table name in configuration? For example in the Dictionary<string, string> that NServiceBus injects into NHibernate?
 
Werner
Reply all
Reply to author
Forward
0 new messages