protected override void OnAfterSetProperty <TObject, TValue>(TObject item, TValue field, TValue value, string callerName) { trackingManager.AddAction(() => { using (var scope = new StopTrackingScope(trackingManager)) return(DataSetTrackingManagerProvider.Instance.DataSet.GetTrackingDatSetUpdate()); }); }
protected override void OnBeforeSetProperty <TObject, TValue>(TObject item, TValue field, TValue value, string callerName) { if (!trackingManager.IsAction) { trackingManager.AddAction(item.GetTrackingPropertyUpdate(field, value, callerName)); foreach (var test in testItems) { var property = test.GetType().GetProperty(callerName); property.SetValue(test, value, Array.Empty <object>()); } } }
protected override void OnBeforeSetProperty <TObject, TValue>(TObject item, TValue field, TValue value, string callerName) => trackingManager.AddAction(() => item.GetTrackingPropertyUpdateV2(field, value, callerName));