-
Notifications
You must be signed in to change notification settings - Fork 230
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add extension distance methods with useSpheroid #1639
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, that looks pretty good! See comments below on the extension methods, and can you please also add tests in SpatialQueryNpgsqlGeometryTest?
src/EFCore.PG.NTS/Extensions/NpgsqlNetTopologySuiteGeometryExtensions.cs
Outdated
Show resolved
Hide resolved
src/EFCore.PG.NTS/Extensions/NpgsqlNetTopologySuiteGeometryExtensions.cs
Outdated
Show resolved
Hide resolved
src/EFCore.PG.NTS/Extensions/NpgsqlNetTopologySuiteGeometryExtensions.cs
Outdated
Show resolved
Hide resolved
src/EFCore.PG.NTS/Extensions/NpgsqlNetTopologySuiteGeometryExtensions.cs
Outdated
Show resolved
Hide resolved
Okay. Please why are some AssertSql calls commented out in some of the test cases in SpatialQueryNpgsqlGeometryTest? |
The commented assertions are only on the SQL that gets generated - the actual functionality still gets tested (via the base class). In the EFCore.PG provider we don't systematically assert SQLs for all tests (like in the SqlServer provider), since SQL has tended to change in various ways because of upstream EF changes (and reacting every time takes a lot of effort). But you're right that we should clean this up here. It would be great if you could assert SQL for the specific test you're adding, I'll try to clean up the rest soon. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, that looks great!
#1638