public override int SaveChanges() { List <ChangeLog> logs = GetEntityChanges(); ChangeLogs.AddRange(logs); return(base.SaveChanges()); }