Using events
Custom logic call and trigger logic is executed on the middle-ware layer, deployed on the application server or not. But some reaction on data change events may be required on client side. XData has followed events to subscribe changes of data: InitRepository<T> OnInit - event acquired when repository has been initialized InitObject<T> OnInitObject - event acquired when object has been initialized by database or default values InvalidateRepository<T> OnInvalidate - repository data has been re-queried from database InvalidateObject<T> OnInvalidateObject - object has been changed and re-queried from database CurrentObjectChanging<T> OnCurrentObjectChanging - current object is changing CurrentObjectChanged<T> OnCurrentObjectChanged - current object has been changed