private void PostSaveChanges() { foreach (var databaseEntityAddedEventArgs in addedEntites) { EntityAdded?.Invoke(this, databaseEntityAddedEventArgs); } foreach (var databaseEntityModifiedEventArgs in modifiedEntites) { EntityModified?.Invoke(this, databaseEntityModifiedEventArgs); } foreach (var databaseEntityRemovedEventArgs in removedEntites) { EntityRemoved?.Invoke(this, databaseEntityRemovedEventArgs); } addedEntites.Clear(); modifiedEntites.Clear(); removedEntites.Clear(); }
void OnEntityModified(T entity, ObjectAction action) { EntityModified?.Invoke(this, new EntityEventArgs(entity, action, Owner.State)); }
private void OnEntityModified(EntityModified e) { Bindings.Apply(e.Entity); SaveGameBindings(); //SaveToAzureTableStorage(e.Entity); }