Пример #1
0
        public void Commit()
        {
            if (logger != null)
            {
                logger.Log(context.ChangeTracker.Entries());
            }

            context.SaveChanges();

            if (logger != null)
            {
                logger.Save();
            }
        }