bilal-fazlani/tracker-enabled-dbcontext

DbGeometry /DbGeography Comparator

garypoker3 opened this issue · 1 comments

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.

good idea!