You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: entity-framework/core/providers/sqlite/spatial.md
+2-3Lines changed: 2 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,6 +25,8 @@ Unfortunately, newer versions of PROJ (a dependency of SpatiaLite) are incompati
25
25
26
26
> [!IMPORTANT]
27
27
> Don't use `Microsoft.EntityFrameworkCore.Sqlite` or `Microsoft.Data.Sqlite` with SpatiaLite on macOS and Linux. Both packages pull in `SQLitePCLRaw.bundle_e_sqlite3` by default—a bundled version of SQLite that is incompatible with system-installed Sqlite. Using it may result in a silent crash at run time. Use `Microsoft.EntityFrameworkCore.Sqlite.Core` or `Microsoft.Data.Sqlite.Core` instead, together with the system SQLite provider as shown below.
28
+
>
29
+
> Also note that the system-installed SQLite library may have different [compile-time options](https://sqlite.org/compile.html) than the bundled version. This can affect the availability of features such as math functions and full-text search. Verify that the features your application relies on work as expected with the system SQLite.
28
30
29
31
Replace `Microsoft.EntityFrameworkCore.Sqlite` with `Microsoft.EntityFrameworkCore.Sqlite.Core` and reference the `SQLitePCLRaw.provider.sqlite3` package to use the system SQLite library:
30
32
@@ -53,9 +55,6 @@ On **macOS**, you'll also need to set an environment variable before running you
53
55
DYLD_LIBRARY_PATH="$(brew --prefix sqlite)/lib"
54
56
```
55
57
56
-
> [!NOTE]
57
-
> The system-installed SQLite library may have different [compile-time options](https://sqlite.org/compile.html) than the bundled version provided by `SQLitePCLRaw.bundle_e_sqlite3`. This can affect the availability of features such as math functions and full-text search. Verify that the features your application relies on work as expected with the system SQLite.
58
-
59
58
## Configuring SRID
60
59
61
60
In SpatiaLite, columns need to specify an SRID per column. The default SRID is `0`. Specify a different SRID using the HasSrid method.
0 commit comments