Exemplo n.º 1
0
        public override int SaveChanges()
        {
            var changeSet = EntityHistoryHelper?.CreateEntityChangeSet(this);

            var result = base.SaveChanges();

            EntityHistoryHelper?.Save(this, changeSet);

            return(result);
        }
Exemplo n.º 2
0
        public override int SaveChanges()
        {
            if (EntityHistoryHelper == null)
            {
                return(base.SaveChanges());
            }

            var changeSet = EntityHistoryHelper.CreateEntityChangeSet(ChangeTracker.Entries().ToList());

            var result = base.SaveChanges();

            EntityHistoryHelper.Save(changeSet);

            return(result);
        }