At present under Windows the app fails with:
The Devart EF samples provided with the SQLite data connector run okay, so presumably assemblies are installed okay.Exception: System.InvalidOperationException: The 'Instance' member of the Entity
Framework provider type 'Devart.Data.SQLite.SQLiteProviderFactory, Devart.Data.
SQLite, Version=4.6.252.0, Culture=neutral, PublicKeyToken=09af7300eec23701' did
not return an object that inherits from 'System.Data.Entity.Core.Common.DbProvi
derServices'. Entity Framework providers must extend from this class and the 'In
stance' member must return the Singleton instance of the provider.
at System.Data.Entity.Config.ProviderServicesFactory.GetInstance(Type provide
rType)
at System.Data.Entity.Config.ProviderServicesFactory.GetInstance(String provi
derTypeName, String providerInvariantName)
I have referenced the following assemblies and copy them into the executable folder as part of the build. I do this as I don't want to rely on the GAC.
Code: Select all
Devart.Data
Devart.Data.Linq
Devart.Data.SQLite
Devart.Data.SQLite.Entity << EF 6 version
Devart.Data.SQLite.Linq
EntityFramework << EF 6 b1
The app.config file is so:
Code: Select all
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<configSections>
<!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 -->
<section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
</configSections>
<entityFramework>
<providers>
<provider invariantName="Devart.Data.SQLite" type="Devart.Data.SQLite.SQLiteProviderFactory, Devart.Data.SQLite" />
</providers>
</entityFramework>
<system.data>
<DBproviderFactories>
<remove invariant="Devart.Data.SQLite" />
<add name="dotConnect for SQLite" invariant="Devart.Data.SQLite" description="Devart dotConnect for SQLite" type="Devart.Data.SQLite.SQLiteProviderFactory, Devart.Data.SQLite" />"
</DBproviderFactories>
</system.data>
</configuration>