Quantcast
Channel: Entity Framework
Viewing all articles
Browse latest Browse all 10318

New Post: Registering providers globally with code during runtime

$
0
0
@tamasflamich DbConfiguration holds the app-domain wide (I.e. global) configuration for EF. It is therefore the correct place to register an EF provider. However, note that with the decoupling of the EF provider (DbProviderServices) from the ADO.NET provider (DbProviderFactory) it is necessary to register both of these. The ADO.NET provider is still obtained from the config file registration above, although this can be bypassed if necessary. The EF provider is registered using one of the AddDbProviderServices methods on DbConfiguration.

Thanks,
Arthur

Viewing all articles
Browse latest Browse all 10318

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>