Open eld1887 opened 6 years ago
That is a bit weird, since Dapper itself is trying to convert UInt64 to GUID. I'll investigate.
I believe this is a mysql connector
issue and not an issue in Dapper.
I tend to use id BINARY(16) NOT NULL,
Did you guys try to update MySQL Connector version?
hi, i get the error:
Invalid cast from 'System.UInt64' to 'System.Guid'. System.InvalidCastException: Invalid cast from 'System.UInt64' to 'System.Guid'. at System.Convert.DefaultToType(IConvertible value, Type targetType, IFormatProvider provider) at Dapper.SqlMapper.Parse[T](Object value) in C:\projects\dapper\Dapper\SqlMapper.cs:line 2969 at Dapper.SqlMapper.<ExecuteScalarImplAsync>d__64
1.MoveNext() in C:\projects\dapper\Dapper\SqlMapper.Async.cs:line 1193`this is my ConfigureServices:
CustomUser and CustomRole:
I changed the table for identityUser (MySql) like so:
Is that a mistake from my side or is that a general bug?
EDIT if i register someone the data is insert in the database, but i get the error message from above