How do I setup NetTopologySuite in .net core 2.2?
I have this already in startup.cs
services.AddDbContext<ApplicationDbContext>(options =>
options.UseSqlServer(Configuration.GetConnectionString("DefaultConnection")));
https://learn.microsoft.com/en-us/ef/core/modeling/spatial
In the docs above it suggests to do something like this... Do I need to put my connection string in the context class too??
Also this code does not work it doesnt recognise UseNetTopologySuite
optionsBuilder.UseSqlServer(
@"Data Source=(localdb)\MSSQLLocalDB;Initial Catalog=WideWorldImporters",
x => x.UseNetTopologySuite());
I added the nuget package, and added some usings... resharper cant even find what it needs despite doing
Install-Package NetTopologySuite