コード例 #1
0
        public virtual EntityHistoryEventInfo CreateEvent(EntityChangesInfo change)
        {
            var changeSet = new EntityChangesInfo<E, T>()
            {
                DateTime = change.DateTime,
            };

            if (change.Entity != null)
                changeSet.Entity = (E)change.Entity;
            if (change.NewValue != null)
                changeSet.NewValue = (T)change.NewValue;
            if (change.OldValue != null)
                changeSet.OldValue = (T)change.OldValue;

            return CreateEvent(changeSet);
        }
コード例 #2
0
 public virtual EntityHistoryEventInfo CreateEvent(EntityChangesInfo<E,T> change)
 {
     throw new System.NotImplementedException();
 }