Configuring the Oracle Entity Framework Data Provider
- Last Updated: April 16, 2026
- 1 minute read
- ADO.NET
- Documentation
Connect for ADO.NET for Oracle Data Provider supports Entity Framework.
You must now register an Entity Framework by configuring the provider. You can do this in two ways: using config file registration or code-based registration.
Provider Registration: Config File Registration
- To work with Entity Framework, you must first install EntityFramework NuGet package.
- Once the package has been installed, the app.config file gets created.
- Remove the defaultConnectionFactory registration section from the app.config file and replace it with the following lines of code:
<providers>
<provider invariantName="DDTek.Oracle" type="DDTek.Oracle.Entity.OracleProviderServices, DDTek.Oracle.Entity, Version=4.3.0.0, Culture=neutral, PublicKeyToken=c84cd5c63851e072" />
</providers>
This adds the Entity Framework provider registration in the Entity Framework section of the app.config file.
Provider Registration: Code-Based Registration
You can configure the Entity Framework application through code-based registration. To do this, you must add a new class, DbConfiguration class to your test application:
public class MyConfiguration : DbConfiguration{
public MyConfiguration()
{
SetProviderServices("DDTek.Oracle.Entity", new OracleProviderServices());
}
}
Note: While testing your applications locally, you can use code-based registration during development time. However, when you deploy your project, you must register the Entity Framework provider using the config file registration method.