DbGeometry /DbGeography Comparator
garypoker3 opened this issue · 1 comments
garypoker3 commented
it seems it doesn't work for Spatial types.
var geom = DbGeometry.FromText("POLYGON ((30 10, 40 40, 20 40, 10 20, 30 10))", 4326);
var geom2 = DbGeometry.FromText("POLYGON ((30 10, 40 40, 20 40, 10 20, 30 10))", 4326);
Assert.IsTrue(ComparatorFactory.GetComparator(typeof(DbGeometry)).AreEqual(geom, geom2));
Also it would be great to have Api to add your own comparator for any type , and also override default ones.
bilal-fazlani commented
good idea!