Can NHibernate map column to a table?

stefan003

New Member
I am creating mapping xml files for a database, but I have an object \[code\]LogObj\[/code\] which I would like to map to different tables (with the same schema) depending upon which \[code\]logid\[/code\] is passed.For example, the table \[code\]tblsystemlogs\[/code\] contains a column \[code\]logstable\[/code\] which can contain various table names such as \[code\]tbllogsprod\[/code\], \[code\]tbllogstest\[/code\], \[code\]tbllogsdev\[/code\].The query is: \[code\]SELECT logstable FROM tblsystemlogs WHERE logid = {0};\[/code\]
 
Back
Top