Closed mcmikecreations closed 1 year ago
ADO.NET doesn't do a great job of serializing non-standard parameters, PARTICULARLY geo objects. NetTopologySuite is common enough to make adjustments for it, and Npgsql supports it directly, so this seems feasible.
Time is limited right now, but it looks like I'll be doing a pass through the PG provider.
Best way to help me fix this fast is to PR a failing test case so I don't have to spend time trying to reproduce.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Describe the bug
For this bug I have an almost complete code sample (apart from connection string setup and enabling postgis extension). I used Xunit for the test.
TL;DR geometry types are converted to string before serialization, so the following exception occurs:
Steps to reproduce
Here's the almost complete code:
The issue happens due to the code in
ToStringObjectSerializer
here.Expected behavior
The unit test would succeed.