With this update, rather than just trying to convert an ExecuteScalar result type using Converter.ChangeType it uses the mappers registered with the database to allow more fine grained conversions. This will be useful for things like SQLite where it stores Guids as strings, but there is no direct conversion between string and Guid in C# so this would result in an exception, where as with this fix, an explicit converter can be added (or actually in this partiaucalr example, there is code in the mapping helper to handle this exact string > Guid scenario)
With this update, rather than just trying to convert an ExecuteScalar result type using
Converter.ChangeType
it uses the mappers registered with the database to allow more fine grained conversions. This will be useful for things like SQLite where it stores Guids as strings, but there is no direct conversion between string and Guid in C# so this would result in an exception, where as with this fix, an explicit converter can be added (or actually in this partiaucalr example, there is code in the mapping helper to handle this exact string > Guid scenario)This fixes #664 and #653