-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Open
Labels
breaking-changev3.0Changes awaiting the next breaking releaseChanges awaiting the next breaking release
Milestone
Description
As per THIS question:
Given:
public class GuidHandler : SqlMapper.TypeHandler<Guid>
{
public override void SetValue(IDbDataParameter parameter, Guid value)
{
// My Custom logic
}
public override Guid Parse(object value)
{
return Guid.Parse(value.ToString());
}
}
...
SqlMapper.AddTypeHandler(new GuidHandler());Even though the Parse is correctly invoked when reading from the DB, the SetValue however never gets called when writing the data.
Any idea of what is going on?
Metadata
Metadata
Assignees
Labels
breaking-changev3.0Changes awaiting the next breaking releaseChanges awaiting the next breaking release