dotConnect for Oracle Documentation
Entity Framework Provider Configuration

Entity Framework support features can be configured either in code using Devart.Data.Oracle.Entity.Configuration.OracleEntityProviderConfig class or in the project .config file. The OracleEntityProviderConfig class is available in the Devart.Data.Oracle.Entity.dll assembly. For example, this code is used to enable batch updates feature:

C#csharpCopy Code
OracleEntityProviderConfig config = OracleEntityProviderConfig.Instance;  
config.DmlOptions.BatchUpdates.Enabled = true;  
Visual BasicCopy Code
Dim Config As OracleEntityProviderConfig
Config = OracleEntityProviderConfig.Instance
Config.DmlOptions.BatchUpdates.Enabled = True

To configure Entity Framework provider with a config file, you need to add the following section to the configSections tag:

  <section name="Devart.Data.Oracle.Entity" 
  Devart.Data.Oracle.Entity.EF[Version], Version=, Culture=neutral, 
  PublicKeyToken=09af7300eec23701" />

Where [Version] is the version of the Entity Framework used. For Entity Framework v1 it is "1", for Entity Framework v4 it is "4", for Entity Framework v5 and v6 it is "5" or "6" respectively. For Entity Framework Core it is "Core".

If there is no configSections element in your config file, add it. It must be the first element. If it's not the first element, your application will throw an error when starting.

Then add the following element to the configuration tag:

 <Devart.Data.Oracle.Entity xmlns="">

And use the following elements of the Devart.Data.Oracle.Entity tag to configure Entity Framework provider.

For more details on using OracleEntityProviderConfig class or configuring Entity Framework provider with a config file see the following topics: