Exemplo n.º 1
0
            void OnMessage(EntityMessage <TEntity, TPrimaryKey> message)
            {
                if (!owner.IsLoaded)
                {
                    return;
                }
                switch (message.MessageType)
                {
                case EntityMessageType.Added:
                    OnEntityAdded(message.PrimaryKey);
                    break;

                case EntityMessageType.Changed:
                    OnEntityChanged(message.PrimaryKey);
                    break;

                case EntityMessageType.Deleted:
                    OnEntityDeleted(message.PrimaryKey);
                    break;
                }
            }