Ejemplo n.º 1
0
        private void EntityOnPropertyChanged(object sender, PropertyEventArgs args)
        {
            Debug.Assert(_changingProperty == args.Property);
            Debug.Assert(_updates != null);

            var entity = (Entity)sender;
            var newValue = entity.Get(_changingProperty);

            UpdateEntity(entity, _updates, _changingProperty, newValue);

            _changingProperty = null;
            _updates = null;
        }
Ejemplo n.º 2
0
        private void EntityOnPropertyChanging(object sender, PropertyEventArgs args)
        {
            Debug.Assert(_changingProperty == null);
            Debug.Assert(_updates == null);

            var entity = (Entity)sender;
            _changingProperty = args.Property;

            var aggregatorsToUpdate = _config.GetAggregatorsUpdateWith(args.Property);
            if (aggregatorsToUpdate != null)
            {
                _updates = GetUpdates(entity, aggregatorsToUpdate);
            }
        }
Ejemplo n.º 3
0
 internal PropertyMetadata(int index)
 {
     _index = index;
     _eventArgs = new PropertyEventArgs(this);
 }
Ejemplo n.º 4
0
 internal PropertyMetadata(int index)
 {
     _index     = index;
     _eventArgs = new PropertyEventArgs(this);
 }