public void RemoveOwnerShipOf(Dog dog) { owns.Remove(dog); dog.Owner = null; }
// The add and remove method ensure that the relations is always consistent public void AddOwnerShipOf(Dog dog) { owns.Add(dog); dog.Owner = this; }