Skip to content

Commit

Permalink
Revert "Updated doc for SQLite, to reflect changes in System.Data.SQL…
Browse files Browse the repository at this point in the history
…ite ver 1.0.104.0."

This reverts commit 88bbdab.
  • Loading branch information
Thorium committed Feb 14, 2017
1 parent 088cc30 commit 70c3d1b
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions docs/content/core/sqlite.fsx
Expand Up @@ -24,21 +24,26 @@ let connectionString =
(**
### ResolutionPath
Typically, this parameter is not needed. It specifies the path to the directory where
`System.Data.SQLite.dll` is located.
Path to search for database vendor speficic assemblies. Specify the path where `System.Data.SQLite.dll` is stored.
If you use the System.Data.SQLite NuGet package and target .NET 4.6, the path would be something like
`__SOURCE_DIRECTORY__ + @"\..\packages\System.Data.SQLite.Core.<version>\lib\net46"`.
Both absolute and relative paths are supported.
Note that `System.Data.SQLite.dll` loads a native interop library, which it looks for in the following
directories:
Note that `System.Data.SQLite.dll` will look for the native interop library:
- on Windows: `SQLite.Interop.dll` in the `x64` and `x86` subdirectories of the resolution path.
- on Linux: `libSQLite.Interop.so` in the resolution path directory.
- alternatively in a directory specified in the "System.Data.SQLite.dll.config" file.
When adding the System.Data.SQLite NuGet package, the default "System.Data.SQLite.dll.config"
file ensures that finding the native interop library "just works".
The interop libraries are not properly placed afer the System.Data.SQLite NuGet package is added, so you might have to
manually copy the interop libraries:
- on Windows: copy `x64` and `x86` subdirectories from SQLite build directory, which typically is
`<project root>\packages\System.Data.SQLite.Core.<version>\build\net46`.
- on Linux: first build the `libSQLite.Interop.so` using `<srcDir>/Setup/compile-interop-assembly-release.sh` script from System.Data.SQLite
source distribution `sqlite-netFx-source-1.x.xxx.x.zip`. And then copy it from `<srcDir>/bin/2013/Release/bin/`.
If `System.Data.SQLite.dll` is in the location where NuGet places it by default, you don't have to submit
the ResolutionPath parameter at all, but you still need to copy the interop libraries as described above.
*)

Expand Down

0 comments on commit 70c3d1b

Please sign in to comment.