Giter Club home page Giter Club logo

Comments (7)

ErikEJ avatar ErikEJ commented on June 9, 2024

"BinaryGUID" is not a valid SQL Server Compact connection string keyword, correct.

There a many opinions about storage of Guids with SQLite - dotnet/efcore#15078

Is it possible make it to create inserts as binary

Anything is possible! But it would have to be an opt-in flag to avoid breaking changes - interested in doing a PR?

from sqlcetoolbox.

alexey-leonovich avatar alexey-leonovich commented on June 9, 2024

interested in doing a PR?

I'm afraid I don't have enough skills to try to make these code changes(

from sqlcetoolbox.

ErikEJ avatar ErikEJ commented on June 9, 2024

@alexey-leonovich Is your example above using the same guid value?

If not, could you provide an example that does?

from sqlcetoolbox.

alexey-leonovich avatar alexey-leonovich commented on June 9, 2024

@ErikEJ sorry, missed your question somehow.
Binary form X'a8828ddfef224d36935a1c66ae86ebb3' equals to text form 'DF8D82A8-22EF-364D-935A-1C66AE86EBB3'

from sqlcetoolbox.

ErikEJ avatar ErikEJ commented on June 9, 2024

How do you get from one to the other?

from sqlcetoolbox.

alexey-leonovich avatar alexey-leonovich commented on June 9, 2024
Guid guid = Guid.Parse("df8d82a8-22ef-364d-935a-1c66ae86ebb3");
var bytes = guid.ToByteArray();
var hex = new StringBuilder(bytes.Length * 2);
foreach (var b in bytes)
    hex.AppendFormat("{0:x2}", b);
var guidString = hex.ToString();

or simply via https://toolslick.com/conversion/data/guid

from sqlcetoolbox.

ErikEJ avatar ErikEJ commented on June 9, 2024

Thanks, I will consider implementing an option to use this format

from sqlcetoolbox.

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.