Skip to content

Commit

Permalink
Add quirk mode for issue #12557
Browse files Browse the repository at this point in the history
  • Loading branch information
AndriySvyryd committed Jul 12, 2018
1 parent 6bf33cc commit 104bb4d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/EFCore.Relational/Storage/RelationalTypeMapping.cs
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,8 @@ public virtual DbParameter CreateParameter(
parameter.ParameterName = name;

if (Converter != null
&& !IsLegacyEnumValue(Converter, value))
&& ((AppContext.TryGetSwitch("Microsoft.EntityFrameworkCore.Issue12557", out var isEnabled) && isEnabled)
|| !IsLegacyEnumValue(Converter, value)))
{
value = Converter.ConvertToProvider(value);
}
Expand Down

0 comments on commit 104bb4d

Please sign in to comment.