Hi,
I need to create a table with generic geometry type column. All geometries will be in a specific SRID
but I cannot specify the exact geometry type. Is it possible to setup SRID using fluent API without specifying the type?
When I know the geometry type I can do this:
builder.Property(x => x.Location).HasColumnType("geometry (point, 3857)");
For SQLite I was using HasSrid but I think it does not work with Npgsql:
builder.Property(x => x.Location).HasSrid(3857);
How to specify SRID for general geometry?
builder.Property(x => x.StreetGeometry).HasSrid(3857);
builder.Property(x => x.StreetGeometry).HasColumnType("geometry");