Document SpatiaLite incompatibility with Microsoft.Data.Sqlite on macOS/Linux#5309
Merged
AndriySvyryd merged 9 commits intomainfrom Mar 28, 2026
Merged
Document SpatiaLite incompatibility with Microsoft.Data.Sqlite on macOS/Linux#5309AndriySvyryd merged 9 commits intomainfrom
AndriySvyryd merged 9 commits intomainfrom
Conversation
…ity and replace removed bundle_sqlite3 Agent-Logs-Url: https://github.com/dotnet/EntityFramework.Docs/sessions/e4933e6b-8782-4c27-8f46-fcf1daaca43b Co-authored-by: AndriySvyryd <6539701+AndriySvyryd@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Document that Microsoft.Data.Sqlite shouldn't be used with Microsoft.EntityFrameworkCore.Sqlite.NetTopologySuite
Document SpatiaLite incompatibility with Microsoft.Data.Sqlite on macOS/Linux
Mar 27, 2026
AndriySvyryd
approved these changes
Mar 27, 2026
…soft.Data.Sqlite.Core in SpatiaLite warning Agent-Logs-Url: https://github.com/dotnet/EntityFramework.Docs/sessions/e3a1eee9-5517-4432-8afd-9eaa2cbe4397 Co-authored-by: AndriySvyryd <6539701+AndriySvyryd@users.noreply.github.com>
There was a problem hiding this comment.
Pull request overview
Updates SQLite spatial documentation to warn about SpatiaLite incompatibility with the bundled SQLite in Microsoft.Data.Sqlite on macOS/Linux, and documents the supported setup using the *.Core packages with the system SQLite provider.
Changes:
- Added an IMPORTANT callout warning against using
Microsoft.EntityFrameworkCore.Sqlite/Microsoft.Data.Sqlitewith SpatiaLite on macOS/Linux and recommending*.Core. - Updated package guidance to use
SQLitePCLRaw.provider.sqlite3and added explicit SQLitePCLRaw provider initialization. - Added an EF Core 11+ note referencing SQLitePCLRaw 3.0 breaking changes and removed the stale Visual Studio for Mac reference.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
roji
reviewed
Mar 27, 2026
Co-authored-by: Shay Rojansky <roji@roji.org>
Member
|
@bricelam FYI |
roji
approved these changes
Mar 28, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #5308
Using
Microsoft.EntityFrameworkCore.SqliteorMicrosoft.Data.Sqlitewith SpatiaLite on macOS/Linux causes a silent crash becauseMicrosoft.Data.SqlitebundlesSQLitePCLRaw.bundle_e_sqlite3, which is incompatible with system-installed Sqlite. The existing docs recommendedSQLitePCLRaw.bundle_sqlite3as a workaround, but that package was removed in SQLitePCLRaw 3.0.Updates
entity-framework/core/providers/sqlite/spatial.md:[!IMPORTANT]callout warning against usingMicrosoft.EntityFrameworkCore.SqliteorMicrosoft.Data.Sqlitewith SpatiaLite on macOS/Linux, recommendingMicrosoft.EntityFrameworkCore.Sqlite.CoreorMicrosoft.Data.Sqlite.CoreinsteadSQLitePCLRaw.bundle_sqlite3workaround withSQLitePCLRaw.provider.sqlite3+ explicit initialization:💬 Send tasks to Copilot coding agent from Slack and Teams to turn conversations into code. Copilot posts an update in your thread when it's finished.