question

NikitaPandey-4461 avatar image
0 Votes"
NikitaPandey-4461 asked NikitaPandey-4461 commented

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?

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-mysql
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

SiddhantS-4265 avatar image
0 Votes"
SiddhantS-4265 answered NikitaPandey-4461 commented
 https://stackoverflow.com/questions/65190673/dapper-problem-with-a-nullable-guid-types

Please check above suggestions works for you



· 3
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @SiddhantS-4265,

Thank you for your response.

I have tried the link that you have shared but again I'm facing the same issue Error parsing column 1 (Unique_Id=1c4ab999-fb0e-4a8d-b929-c59e64d6e0e0 - Object).

Please let me know any other alternative solution as my issue is still not fixed.

0 Votes 0 ·

Hi,
Have you tried using CHAR(36) instead of varchar

0 Votes 0 ·

Hi @SiddhantS-4265,

Thank you for your response.

we are already using CHAR(36).
with that also it is not working same error is showing.

Please let me know how to fix this issue.

0 Votes 0 ·