Skip to content

Commit 5bf26da

Browse files
Merge compile-time options note into the IMPORTANT block
Agent-Logs-Url: https://github.com/dotnet/EntityFramework.Docs/sessions/abc1b896-bfcb-4a24-9790-c9c8f88e222f Co-authored-by: AndriySvyryd <6539701+AndriySvyryd@users.noreply.github.com>
1 parent 3b12595 commit 5bf26da

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

entity-framework/core/providers/sqlite/spatial.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ Unfortunately, newer versions of PROJ (a dependency of SpatiaLite) are incompati
2525

2626
> [!IMPORTANT]
2727
> 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.
2830
2931
Replace `Microsoft.EntityFrameworkCore.Sqlite` with `Microsoft.EntityFrameworkCore.Sqlite.Core` and reference the `SQLitePCLRaw.provider.sqlite3` package to use the system SQLite library:
3032

@@ -53,9 +55,6 @@ On **macOS**, you'll also need to set an environment variable before running you
5355
DYLD_LIBRARY_PATH="$(brew --prefix sqlite)/lib"
5456
```
5557

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-
5958
## Configuring SRID
6059

6160
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

Comments
 (0)