2016-10-03 1 views
0

개체가 전용 ​​속성에로드 될 때 초기 값을 저장하려고합니다. 나중에 값을 변경하면 초기 값과 현재 값을 비교할 수 있기를 원합니다. 초기 값을 캡처하기에 적합한 이벤트를 찾을 수 없습니다. 단지 객체를로드 한 후 ... OnAfterCreate 트릭 ..하지 않습니다해야Codefluent에서 .Load 후 어떤 이벤트가 발생합니까?

+1

OnAfterReadRecord? https://www.softfluent.com/documentation/EventRules_LifecycleMethodEvents.html –

+0

ModelHistory? https://www.softfluent.com/documentation/BOM_EVT_EN_PropertyChanged.html – meziantou

답변

0

내가 propably 또한하여 PropertyChanged 이벤트를 사용할 수 있지만 그것을 구현하는 방법을 잘 모르겠습니다은 .. 그것은 OnAfterReadRecord 참이었다. 감사합니다 사이먼!

보호 공극 OnAfterReadRecord (System.Data.IDataReader 리더 CodeFluent.Runtime.CodeFluentReloadOptions 옵션) { _initialActive = CodeFluentPersistence.GetReaderValue (리더 "CwObject_Active" ((BOOL) (FALSE))) ; }