You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
varentity= SqlMapper.QuerySingle<AllPrimitive>(new RequestContext
{EnablePropertyChangedTrack=true,RealSql="SELECT Top (1) T.* From T_AllPrimitive T With(NoLock)"});varentityProxy= entity as IEntityPropertyChangedTrackProxy;
Assert.NotNull(entityProxy);varstate= entityProxy.GetPropertyVersion(nameof(AllPrimitive.String));
Assert.Equal(0, state);
entity.String ="Updated";state= entityProxy.GetPropertyVersion(nameof(AllPrimitive.String));
Assert.Equal(1, state);
SqlMapper.Update(entity);
Update T_AllPrimitive Set [String]=@String Where [Id]=@Id
Parameters:[String=Updated,Id=169381]
Sql with parameter value:
Update T_AllPrimitive Set [String]='Updated' Where [Id]=169381
-> https://github.com/Smart-Kit/SmartSql-Docs
The text was updated successfully, but these errors were encountered: