OHV.SqliteDAL.dll.config 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <configuration>
  3. <configSections>
  4. <!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 -->
  5. <section name="entityFramework"
  6. type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
  7. requirePermission="false"/>
  8. </configSections>
  9. <connectionStrings>
  10. <add name="OHVDb" connectionString="data source=.\db\OHVDb\OHVDb.sqlite;foreign keys=true" providerName="System.Data.SQLite"/>
  11. </connectionStrings>
  12. <system.data>
  13. <DbProviderFactories>
  14. <remove invariant="System.Data.SQLite.EF6"/>
  15. <add name="SQLite Data Provider (Entity Framework 6)" invariant="System.Data.SQLite.EF6"
  16. description=".NET Framework Data Provider for SQLite (Entity Framework 6)" type="System.Data.SQLite.EF6.SQLiteProviderFactory, System.Data.SQLite.EF6"/>
  17. <remove invariant="System.Data.SQLite"/>
  18. <add name="SQLite Data Provider" invariant="System.Data.SQLite" description=".NET Framework Data Provider for SQLite"
  19. type="System.Data.SQLite.SQLiteFactory, System.Data.SQLite"/>
  20. </DbProviderFactories>
  21. </system.data>
  22. <entityFramework>
  23. <defaultConnectionFactory type="System.Data.Entity.Infrastructure.LocalDbConnectionFactory, EntityFramework">
  24. <parameters>
  25. <parameter value="mssqllocaldb"/>
  26. </parameters>
  27. </defaultConnectionFactory>
  28. <providers>
  29. <provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer"/>
  30. <provider invariantName="System.Data.SQLite" type="System.Data.SQLite.EF6.SQLiteProviderServices, System.Data.SQLite.EF6"/>
  31. <provider invariantName="System.Data.SQLite.EF6" type="System.Data.SQLite.EF6.SQLiteProviderServices, System.Data.SQLite.EF6"/>
  32. </providers>
  33. </entityFramework>
  34. </configuration>