How to have one single RESTier 0.6.0 service picking the database depending on the request?
<p><strong>Scenario A:</strong> Suppose you have several databases on the same SQL Server/SQL Azure instance sharing the exact same structure, where the database names are convention based, like db001, db002, ... and a single RESTier service must be able to address the correct database for each REST call, depending on some characteristic to be provided on the request header or on the URI path or query string.</p>

<p><strong>Scenario B:</strong> A single RESTier service must be able to address more than one connection string, defined on the web.config file, depending on some characteristic to be provided on the request.</p>

<p>In both scenarios the base issue is the same, a single RESTier service to be able to address requests for more than one database, where the client must submit on each request a hint to the database to be used, a typical multitenant scenario. I'm using RESTier version 0.6 and the entity sets are automatically exposed from a Entity Framework model:</p>

<pre><code>public class Entities : EntityFrameworkApi&lt;SalesEntities&gt; { 
</code></pre>

<p><strong>Question is</strong>, how would you advise to implement this kind of multi-tenant scenarios?</p>