title: How do I configure NHibernate (or Fluent NHib) to add a table name prefix to all table names?
body: <p>In the current application I'm developing I'm using Fluent NHibernate to configure NHibernate for use as an ORM.  I want to be able to add a prefix to all the table names used in the application, so that if I use a database that is already servicing another application, there are no naming conflicts between the two applications. </p>
  
  <p>So for instance if I wanted to add a prefix of <code>Portal_</code> to each table, the <code>Users</code> table would become <code>Portal_Users</code>.</p>
  
  <p>Of course, I know how to configure each table name in each mapping file, but that's not really a good solution for what I'm trying to do.  If I ever wanted to change the prefix, I would be forced to change each of the mapping files. I want to be able to add (or change) the prefix to all the table names in a single place in my code or configuration.</p>
  
  <p><strong>How does one add a prefix to all table names within an application using NHibernate (or Fluent NHibernate)?</strong></p>