Giter Site home page Giter Site logo

Comments (6)

dotMorten avatar dotMorten commented on May 23, 2024

That shouldn't be a problem, as it looks pretty simple. However I have no idea what that's for, as I've never needed that myself. Any chance you could write some unit tests for inserting and querying them, and I'll make them pass? (Look at the two unit test classes that are already there for inspiration).
You could just write the tests against the "real" types assembly. I can then pull them in and make things compile and pass.

from microsoft.sqlserver.types.

KarloX2 avatar KarloX2 commented on May 23, 2024

Having support for SqlHierarchyId would be extremly useful when working with such data with clients where the underlying native dll can't run. Yes, I'll try to provide something, but that can't happen before around May, 10th. Ok for you?

Thanks!

from microsoft.sqlserver.types.

dotMorten avatar dotMorten commented on May 23, 2024

@KarloX2 Sounds good. Before you do, double check this issue to ensure I haven't already somehow done it by then :-)

from microsoft.sqlserver.types.

KarloX2 avatar KarloX2 commented on May 23, 2024

Greetings @dotMorten !

I took some time to browse thru the original code of the SqlHierarchyId struct using Visual Studio's built-in decompiler. Two surprises:

  1. Unlike the spatial types, this part of the Microsoft.SqlServer.Types assembly doesn't seem to do any calls into the native binary SqlServerSpatial140.dll. I think it is all written in managed code, either C# or managed C++.
  2. The underlying (managed) code is more complex than I expected. A few thousand lines of code.

Do you really think it is worth the effort to write this new from scratch? If Microsoft would permit it, this part could be ported rather easily into a .NET Standard conform new assembly.

from microsoft.sqlserver.types.

dotMorten avatar dotMorten commented on May 23, 2024

@KarloX2 Thanks I came to the same realization. It looked simple at first but it is far from it. Since I don't even understand how to use these correctly, I'm not sure how to even begin to do this (and decompiling isn't really a legal option). So the best approach here is to lobby the SQLServer team to opensource the managed bits for .NET Standard.

from microsoft.sqlserver.types.

dotMorten avatar dotMorten commented on May 23, 2024

Completed. Thanks @olmobrutall

from microsoft.sqlserver.types.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.