public void RegisterAdded(EntityBase entity, IPersistRepository repository) { if (!Added.ContainsKey(entity)) { Added.Add(entity, repository); } }