public void Move(object from, Data.AuditPropertyValue to) { if (from != null) { to.SetValue(_getter((THost)from)); } }
public void Move(Data.AuditPropertyValue from, object to) { if (to != null) { _setter((THost)to, from.GetValue <TProp>()); } }
public static IEnumerable <Data.AuditPropertyValue> AsPropertyValues <TEvent>(TEvent from) where TEvent : class { if (from == null) { return(Enumerable.Empty <Data.AuditPropertyValue>()); } return(GetKind <TEvent>().Properties .Select(p => { var pv = new Data.AuditPropertyValue { PropertyId = p.ID }; pd(typeof(TEvent), p.ID).Move(from, pv); return pv; })); }
public object GetValue(Data.AuditPropertyValue v) { return(v.GetValue <T>()); }