I have added the MySqlGuidTypeHandler : SqlMapper.TypeHandler<Guid> class in my entities and also added the TypeHandle in startup.cs file but I am getting the error?

Nikita Pandey 146 Reputation points
2022-05-13T11:11:31.81+00:00

Hi,

I have added the below class in the file.
MySqlGuidTypeHandler : SqlMapper.TypeHandler<Guid>

Also added the TypeHandle in a startup.cs file but I am getting the below error:-

Error parsing column 1 (Unique_Id=1c4ab999-fb0e-4a8d-b929-c59e64d6e0e0 - Object)

Please help me out on this issue as I tried with Guid data type then it is working fine but with MySqlGuidTypeHandler not working.

Thank you.

Azure Database for MySQL
Azure Database for MySQL
An Azure managed MySQL database service for app development and deployment.
709 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Siddhant S 1 Reputation point Microsoft Employee
    2022-05-15T11:08:18.07+00:00
    https://stackoverflow.com/questions/65190673/dapper-problem-with-a-nullable-guid-types
    

    Please check above suggestions works for you