コード例 #1
0
        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();
        }
コード例 #2
0
 void OnEntityModified(T entity, ObjectAction action)
 {
     EntityModified?.Invoke(this, new EntityEventArgs(entity, action, Owner.State));
 }