Nov 12, 2014 at 3:30 PM
Edited Nov 12, 2014 at 5:13 PM
I have now looked at that article and I can run the code but I don't seem to get any database access. This is because I also use this code
<add databaseType="EntLibContrib.Data.OdpNet.OracleDatabase, EntLibContrib.Data.OdpNet, Version=5.0.505.0, Culture=neutral, PublicKeyToken=null" name="Oracle.ManagedDataAccess.Client"/>
Using Fluent API seems to remove this code. Is that true?
I can do my own providerMappings with the Fluent API as below
.WithProviderNamed( my_provider )
.MappedToDatabase(Type.GetType("EntLibContrib.Data.OdpNet.OracleDatabase, EntLibContrib.Data.OdpNet, Version=5.0.505.0, Culture=neutral, PublicKeyToken=null"));
but I want to access the original EL xml structure <providerMappings
> if possible rather than store the type in appSettings. I can then get the databasetype from the EL xml configuration before I use the Fluent API to overwrite it.
Is it possible to get at the providerMappings objects before I do my ConfigureData() code?
I feel like I am re-writing the DAAB and all I want is to have encrypted connection strings but not encrypt the entire CONFIG file.