App.config 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <configuration>
  3. <configSections>
  4. <section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
  5. <!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 -->
  6. </configSections>
  7. <connectionStrings>
  8. <add name="DefaultConnection" connectionString="data source=|DataDirectory|\FaultLog.db" providerName="System.Data.SQLite" />
  9. </connectionStrings>
  10. <entityFramework>
  11. <defaultConnectionFactory type="System.Data.Entity.Infrastructure.LocalDbConnectionFactory, EntityFramework">
  12. <parameters>
  13. <parameter value="v13.0" />
  14. </parameters>
  15. </defaultConnectionFactory>
  16. <providers>
  17. <provider invariantName="System.Data.SQLite" type="System.Data.SQLite.EF6.SQLiteProviderServices, System.Data.SQLite.EF6" />
  18. <provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer" />
  19. <provider invariantName="System.Data.SQLite.EF6" type="System.Data.SQLite.EF6.SQLiteProviderServices, System.Data.SQLite.EF6" />
  20. </providers>
  21. </entityFramework>
  22. <runtime>
  23. <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
  24. <dependentAssembly>
  25. <assemblyIdentity name="System.Data.SQLite" publicKeyToken="db937bc2d44ff139" culture="neutral" />
  26. <bindingRedirect oldVersion="0.0.0.0-1.0.106.0" newVersion="1.0.106.0" />
  27. </dependentAssembly>
  28. <dependentAssembly>
  29. <assemblyIdentity name="System.Data.SQLite.EF6" publicKeyToken="db937bc2d44ff139" culture="neutral" />
  30. <bindingRedirect oldVersion="0.0.0.0-1.0.106.0" newVersion="1.0.106.0" />
  31. </dependentAssembly>
  32. </assemblyBinding>
  33. </runtime>
  34. <startup>
  35. <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.2" />
  36. </startup>
  37. <system.data>
  38. <DbProviderFactories>
  39. <remove invariant="System.Data.SQLite.EF6" />
  40. <add name="SQLite Data Provider (Entity Framework 6)" invariant="System.Data.SQLite.EF6" description=".NET Framework Data Provider for SQLite (Entity Framework 6)" type="System.Data.SQLite.EF6.SQLiteProviderFactory, System.Data.SQLite.EF6" />
  41. <remove invariant="System.Data.SQLite" /><add name="SQLite Data Provider" invariant="System.Data.SQLite" description=".NET Framework Data Provider for SQLite" type="System.Data.SQLite.SQLiteFactory, System.Data.SQLite" /></DbProviderFactories>
  42. </system.data>
  43. </configuration>