void Map_ObjectUpdatedGeneric(object sender, QSOrmProject.UpdateNotification.OrmObjectUpdatedGenericEventArgs <TUserSettings> e) { if (e.UpdatedSubjects.Any(x => x.Id == Settings.Id)) { UoW.Session.Refresh(Settings); } }
void OnCalUnloadUpdated(object sender, QSOrmProject.UpdateNotification.OrmObjectUpdatedGenericEventArgs <CarUnloadDocument> e) { if (e.UpdatedSubjects.Any(x => x.RouteList.Id == Entity.Id)) { ReloadDiscrepancies(); } }
void OnExternalUpdate(object sender, QSOrmProject.UpdateNotification.OrmObjectUpdatedGenericEventArgs <TEntity> e) { if (!UoW.IsAlive) { logger.Warn("Получена нотификация о внешнем обновлении данные в {0}, в тот момент когда сессия уже закрыта. Возможно RepresentationModel, осталась в памяти при закрытой сессии.", this); return; } if (e.UpdatedSubjects.Any(NeedUpdateFunc)) { UpdateNodes(); } }
void Handle_ObjectUpdatedGeneric(object sender, QSOrmProject.UpdateNotification.OrmObjectUpdatedGenericEventArgs <Employee> e) { UpdateNodes(); }