How does the SQLite Entity Framework 6 provider handle Guids?

It appears that this was resolved in 1.0.95 however broken again in 1.0.97. The solution is to set the BinaryGUID property on the connection string to true and set the following environment variable (before you make the connection)

Environment.SetEnvironmentVariable(“AppendManifestToken_SQLiteProviderManifest”,”;BinaryGUID=True;”);

Data Source=c:\mydb.db;Version=3;BinaryGUID=True;

https://www.connectionstrings.com/sqlite/

Leave a Comment