Skip to main content
net8.0

NetTopologySuite support for the SQLite database provider for Entity Framework Core.

Published
Mar 12, 2024
2y ago
Total Downloads
2.8M
2,841,565

Install

dotnet add package Microsoft.EntityFrameworkCore.Sqlite.NetTopologySuite --version 9.0.0-preview.2.24128.4
ProductVersions
.NET
net8.0

README

Microsoft.EntityFrameworkCore.Sqlite.NetTopologySuite enables use of SpatiaLite spatial data for SQLite with Entity Framework Core and NetTopologySuite.

Usage

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:

Getting started with EF Core

See Getting started with EF Core for more information about EF NuGet packages, including which to install when getting started.

Feedback

If you encounter a bug or issues with this package,you can open an Github issue. For more details, see getting support.

Changes from Previous Version

No structural changes between v9.0.0-preview.1.24081.2 and v9.0.0-preview.2.24128.4.

Adoption Assessment

A verified publisher signal is available. Assess fit from the package's supported frameworks, license and dependency graph rather than popularity alone.

This version is marked prerelease. Validate its API and upgrade path before production use.Compatibility metadata lists 1 target framework; confirm the exact target used by your application.

Related Guides & Workflows

Learn how to evaluate, integrate, or audit this package in your .NET project.