title: Unity dynamic mapping
body: <p>I'm new to Unity Dependency Injection and have a question thats probably very straight forward..</p>
  
  <p>I would like to register type mappings based on configuration pulled from my database model. How and what's the best way to do this?</p>
  
  <p>For example would I do something like this?</p>
  
  <pre><code>myContainer.RegisterType&lt;IMyType, /*My dynamic config value*/&gt;();
  </code></pre>
  
  <p>Thanks in advance</p>