-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Exception in EF Core SQLite (7.0.2) with Net Topology Suite (7.0.2) #30175
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
Duplicate of #29584 |
If you would take a look at the 2nd fiddle https://dotnetfiddle.net/rq4zws, it is following the guide Spatial Data in the SQLite EF Core Provider which said to use the package Is the fix in #29584 only applicable to |
/cc @bricelam |
On Linux (and macOS) you need to manually instal mod_spatialite. # Debian/Ubuntu
apt-get install libsqlite3-mod-spatialite
# macOS
brew install libspatialite |
Thanks for your reply. However, I'm receiving the same error on Windows development machine too.
|
I created a simple console app with EF Core SQLite (7.0.2) + Net Topology Suite (7.0.2) using this guide Getting Started with EF Core with the following packages:
Using the
DbContext
:You may run this fiddle to get an idea: https://dotnetfiddle.net/Xv6DBD
Exception produced:
Then I tweaked the app using this guide Spatial Data in the SQLite EF Core Provider which asked to use the following packages:
This tweaked fiddle https://dotnetfiddle.net/rq4zws produces the following exception. The fiddle is running on Linux. Running on VS 2022 on Windows 10 produces a slightly different error message, look at the bottom for the stack trace:
Exception on Windows 10:
Include provider and version information
EF Core version: 7.0.2
Database provider: Microsoft.EntityFrameworkCore.Sqlite
Target framework: .NET 7.0
Operating system: Windows 10
IDE: Visual Studio 2022 17.4.4
The text was updated successfully, but these errors were encountered: