Guid is serialized differently in sqlite for "normal" and autoid entries

Hi,
I have the following class and noted, that the “id” and the “landId” are serialized differently. That could be a problem, when I export the data and the guid are in different formats.
Is that behaviour by intention? Can I change that?

If you’re talking about [AutoId] that’s using the preferred Auto populated Guid Id for each RDBMS. You can change it by not using [AutoId] and populate it with Guid.NewGuid() when saving the record.

Otherwise OrmLite uses Type Converters to control how each Type is saved and hydrated from an RDBMS, which you can override with your own custom Type Converter implementation.

Hi,
in SqliteProvider is possible to force AutoId to store the Guid value in UpperCase?

Thanks

You can inherit SqliteGuidConverter with your own implementation that returns what you want in ToQuotedString() then register your custom Type Converter with:

SqliteDialect.Provider.RegisterConverter<Guid>(new MyCustomGuidConverter());