Morten Nielsen

Results 474 comments of Morten Nielsen

Correct. Well-known binary support is not part of the library. Main goal of the library was to enable you to get geometry in and out of sqlserver. You can always...

Most of these operations are not simple-to-implement features, as they require spatial geometry processing, and without knowing Microsoft's implementation, there's no way to get the exact same results they do....

...having said that adding WKB support isn't that hard, and I already have done something similar before that just needs to be ported to here, which is why I renamed...

Issue still open and no one has submitted a PR to address it 🤷

I believe this is just a known limitation of using custom CLR types that are essentially different from the ones SqlServer uses (while they are the same in functionality and...

Actually try adding this to your application startup: https://github.com/dotMorten/Microsoft.SqlServer.Types/blob/cb48637ef78d36f4b2333d9b7a0f451d193f4316/src/Microsoft.SqlServer.Types.Tests/AssemblyLoader.cs#L21-L33

I’ve actually been unable to reproduce this. Even the unit tests “just works” with that API call. Any chance you could share a self-contained application that reproduces this?

Another thing you could try that might just do the trick is to explicitly load the assembly up-front before querying anything.

> I am running net472 console app Do not use this library if you use .NET Framework, but instead use the official Microsoft SDK. This library here is to fill...

I’d recommend multi targeting your class library instead