When using a key type of Guid with Identity.Dapper, UserManager.FindByIdAsync does not work because Convert.ChangeType can't convert a string to a Guid.
This pull request adds support for TypeConverters (for which there are many built in, including for Guid). If a valid TypeConverter is not found, it falls back on the existing Convert.ChangeType call.
When using a key type of Guid with Identity.Dapper,
UserManager.FindByIdAsync
does not work becauseConvert.ChangeType
can't convert a string to a Guid.This pull request adds support for TypeConverters (for which there are many built in, including for Guid). If a valid TypeConverter is not found, it falls back on the existing
Convert.ChangeType
call.