I am trying the new functionality with EF Core 2.2. It is based on the following article. \"Announcing Entity Framework Core 2.2\" https://blogs.msdn.microsoft.com/dotnet/20
As Kyle pointed out you need to call UseNetTopologySuite()
, but I would call it during ConfigureServices like this:
public class Startup
{
public void ConfigureServices(IServiceCollection services)
{
services
.AddEntityFrameworkNpgsql()
.AddDbContext(opt =>
opt.UseNpgsql(Configuration.GetConnectionString("MyDBConnection"),
o=>o.UseNetTopologySuite()))
.BuildServiceProvider();
...
}
...
}