internal void RemoveFromCreateOnlyParentChangeableChild_Children(CreateOnlyParentChangeableChild_Child createOnlyParentChangeableChild_Child) { #if DEBUG if (!createOnlyParentChangeableChild_Children.Remove(createOnlyParentChangeableChild_Child)) { throw new Exception(); } #else createOnlyParentChangeableChild_Children.Remove(createOnlyParentChangeableChild_Child); #endif onRemovedFromCreateOnlyParentChangeableChild_Children(createOnlyParentChangeableChild_Child); #if DEBUG DC.Trace?.Invoke($"Remove CreateOnlyParentChangeableChild_Child {createOnlyParentChangeableChild_Child.GetKeyOrHash()} from " + $"{this.GetKeyOrHash()} CreateOnlyParentChangeableChild_ParentNullable.CreateOnlyParentChangeableChild_Children"); #endif }
internal void AddToCreateOnlyParentChangeableChild_Children(CreateOnlyParentChangeableChild_Child createOnlyParentChangeableChild_Child) { #if DEBUG if (createOnlyParentChangeableChild_Child == CreateOnlyParentChangeableChild_Child.NoCreateOnlyParentChangeableChild_Child) { throw new Exception(); } if ((createOnlyParentChangeableChild_Child.Key >= 0) && (Key < 0)) { throw new Exception(); } if (createOnlyParentChangeableChild_Children.Contains(createOnlyParentChangeableChild_Child)) { throw new Exception(); } #endif createOnlyParentChangeableChild_Children.Add(createOnlyParentChangeableChild_Child); onAddedToCreateOnlyParentChangeableChild_Children(createOnlyParentChangeableChild_Child); #if DEBUG DC.Trace?.Invoke($"Add CreateOnlyParentChangeableChild_Child {createOnlyParentChangeableChild_Child.GetKeyOrHash()} to " + $"{this.GetKeyOrHash()} CreateOnlyParentChangeableChild_ParentNullable.CreateOnlyParentChangeableChild_Children"); #endif }
partial void onRemovedFromCreateOnlyParentChangeableChild_Children(CreateOnlyParentChangeableChild_Child createOnlyParentChangeableChild_Child);
partial void onAddedToCreateOnlyParentChangeableChild_Children(CreateOnlyParentChangeableChild_Child createOnlyParentChangeableChild_Child);