title: Upgrading EntLib 4.1 to 5 with Oracle.DataAccess.Client
body: <p>I am upgrading a project from EntLib 4.1 to EntLib 5. I've skimmed through the Migration Guide, changed all the references and updated all the config files to point to EntLib 5. All worked fine accept Oracle database access. With the config file:</p>
  
  <pre><code>&lt;configuration&gt;
    &lt;configSections&gt;
      &lt;section name="dataConfiguration" type="Microsoft.Practices.EnterpriseLibrary.Data.Configuration.DatabaseSettings, Microsoft.Practices.EnterpriseLibrary.Data, Version=5.0.414.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="true" /&gt;
    &lt;/configSections&gt;
    &lt;dataConfiguration defaultDatabase="prod"&gt;
      &lt;providerMappings&gt;
        &lt;add databaseType="Microsoft.Practices.EnterpriseLibrary.Data.Oracle.OracleDatabase, Microsoft.Practices.EnterpriseLibrary.Data"
          name="Oracle.DataAccess.Client" /&gt;
      &lt;/providerMappings&gt;
    &lt;/dataConfiguration&gt;
    &lt;connectionStrings&gt;
      &lt;add name="prod" connectionString="Data Source=dev;User Id=dev;Password=dev;"
        providerName="Oracle.DataAccess.Client" /&gt;
    &lt;/connectionStrings&gt;
  &lt;/configuration&gt;
  </code></pre>
  
  <p>which worked with 4.1 all calls to <code>DatabaseFactory.CreateDatabase()</code> fails with:</p>
  
  <pre><code>System.InvalidOperationException: The type Database cannot be constructed. You must configure the container to supply this value.
  </code></pre>
  
  <p>If I replace <code>Oracle.DataAccess.Client</code> with the Microsoft <code>System.Data.Oracleclient</code> it all works again, but is not full of ODP.net lovelyness. Does anyone know how to get this to work with EntLib 5? </p>
  
  <p>Cheers,
     Mlk</p>