Skip to content

Commit

Permalink
Re-introduce quirk with typo (#30825)
Browse files Browse the repository at this point in the history
  • Loading branch information
ajcvickers authored May 4, 2023
1 parent 847bdd3 commit ea91060
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ public class SqlServerUpdateSqlGenerator : UpdateAndSelectSqlGenerator, ISqlServ
private static readonly bool UseOldBehavior30330
= AppContext.TryGetSwitch("Microsoft.EntityFrameworkCore.Issue30330", out var enabled30330) && enabled30330;

private static readonly bool LegacyUseOldBehavior30330
= AppContext.TryGetSwitch("Microsoft.EntityFrameworkCore.Issue30330 ", out var enabled30330) && enabled30330;

/// <summary>
/// This is an internal API that supports the Entity Framework Core infrastructure and not subject to
/// the same compatibility standards as public APIs. It may be changed or removed without notice in
Expand Down Expand Up @@ -159,7 +162,7 @@ protected override void AppendUpdateColumnValue(
if (columnModification.Property != null)
{
bool needsTypeConversion;
if (!UseOldBehavior30330)
if (!UseOldBehavior30330 && !LegacyUseOldBehavior30330)
{
var propertyClrType = columnModification.Property.GetTypeMapping().Converter?.ProviderClrType
?? columnModification.Property.ClrType;
Expand Down

0 comments on commit ea91060

Please sign in to comment.