Ejemplo n.º 1
0
        // TODO: Check if can be changed from dynamic to something else, maybe mapper: like
        private void ApplyChange(Event @event, bool isNew)
        {
            //dynamic dynamic = this;
            //dynamic.Handle((dynamic)@event);
            var mapper = new AutoMapper.MapperConfiguration(null).CreateMapper();

            mapper.Map(@event, this);

            if (isNew) _changes.Add(@event);
        }
Ejemplo n.º 2
0
 protected void ApplyChange(Event @event)
 {
     ApplyChange(@event, true);
 }