Back to Efcore

README

src/EFCore.SqlServer.NTS/README.md

11.0.1001.4 KB
Original Source

Microsoft.EntityFrameworkCore.SqlServer.NetTopologySuite enables use of spatial data for SQL Server and Azure SQL with Entity Framework Core and NetTopologySuite.

Usage

Call UseNetTopologySuite inside the call to UseSqServer when configuring the SQLite database provider for your DbContext. For example:

csharp
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
    => options.UseSqlServer(
        "Server=localhost;Database=MyDatabase;Trusted_Connection=True;",
        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.