Skip to content

Commit da79a3d

Browse files
committed
optimize EnablePropertyChangedTrack
1 parent a2b7ec1 commit da79a3d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

build/version.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<PropertyGroup>
33
<VersionMajor>4</VersionMajor>
44
<VersionMinor>0</VersionMinor>
5-
<VersionPatch>82</VersionPatch>
5+
<VersionPatch>83</VersionPatch>
66
<VersionPrefix>$(VersionMajor).$(VersionMinor).$(VersionPatch)</VersionPrefix>
77
</PropertyGroup>
88
</Project>

src/SmartSql/Deserializer/EntityDeserializer.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,8 +178,8 @@ private Delegate CreateDeserialize<TResult>(ExecutionContext executionContext)
178178
LoadPropertyValue(ilGen, executionContext, colIndex, propertyType, filedType, resultProperty);
179179
ilGen.Call(property.SetMethod);
180180
}
181-
182-
if (executionContext.Request.EnablePropertyChangedTrack == true)
181+
182+
if (resultType.IsAssignableFrom(typeof(IEntityPropertyChangedTrackProxy)))
183183
{
184184
ilGen.LoadLocalVar(0);
185185
ilGen.LoadInt32(1);

0 commit comments

Comments
 (0)