You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Question: How do I set general geometry column with specific SRID? #2139
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);
Activity
roji commentedon Dec 3, 2021
Does
geometry(Geometry,3857)meet your needs?swidz commentedon Dec 6, 2021
Exactly what I needed! Thank you!