public override void SaveChanges() { try { if (logger != null) { logger.DetectChanges(); } base.SaveChanges(); } catch (Exception e) { throw; } }