NetTopologySuite support for the SQLite database provider for Entity Framework Core.
$ dotnet add package Microsoft.EntityFrameworkCore.Sqlite.NetTopologySuiteMicrosoft.EntityFrameworkCore.Sqlite.NetTopologySuite enables use of SpatiaLite spatial data for SQLite with Entity Framework Core and NetTopologySuite.
Call UseNetTopologySuite inside the call to UseSqlite when configuring the SQLite database provider for your DbContext. For example:
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
=> options.UseSqlite("Data Source=spatialdata.dat", b => b.UseNetTopologySuite());
For more information on using spatial data with EF Core and SQLite, see:
See Getting started with EF Core for more information about EF NuGet packages, including which to install when getting started.
If you encounter a bug or issues with this package,you can open an Github issue. For more details, see getting support.