I'm trying to create a new instance of the class UniConnection and get it's "ProviderFactory" property with "System.Data.Entity.Core.Common.DbProviderServices.GetProviderFactory()" but the UniConnection is being created with the property "ProviderFactory" as null value.
My code is :
Code: Select all
var m_Connection = new UniConnection(MyDevartConnectionString);
var m_Provider = DbProviderServices.GetProviderFactory(m_Connection);
Code: Select all
"An unhandled exception of type 'System.Data.Entity.Core.ProviderIncompatibleException' occurred in EntityFramework.dll
Additional information: A null was returned after calling the 'get_ProviderFactory' method on a store provider instance of type 'Devart.Data.Universal.UniConnection'. The store provider might not be functioning correctly."
Thanks,
Giuliano Medina