public ChildrenList_CreateOnlyChild( string text, ChildrenList_CreateOnlyParent createOnlyParent, ChildrenList_CreateOnlyParentReadonly createOnlyParentReadonly, ChildrenList_CreateOnlyParentNullable?createOnlyParentNullable, ChildrenList_CreateOnlyParentNullableReadonly?createOnlyParentNullableReadonly, bool isStoring = true) { Key = StorageExtensions.NoKey; Text = text; CreateOnlyParent = createOnlyParent; CreateOnlyParentReadonly = createOnlyParentReadonly; CreateOnlyParentNullable = createOnlyParentNullable; CreateOnlyParentNullableReadonly = createOnlyParentNullableReadonly; #if DEBUG DC.Trace?.Invoke($"new ChildrenList_CreateOnlyChild: {ToTraceString()}"); #endif CreateOnlyParent.AddToChildrenList_CreateOnlyChildren(this); CreateOnlyParentReadonly.AddToChildrenList_CreateOnlyChildren(this); if (CreateOnlyParentNullable != null) { CreateOnlyParentNullable.AddToChildrenList_CreateOnlyChildren(this); } if (CreateOnlyParentNullableReadonly != null) { CreateOnlyParentNullableReadonly.AddToChildrenList_CreateOnlyChildren(this); } onConstruct(); if (DC.Data?.IsTransaction ?? false) { DC.Data.AddTransaction(new TransactionItem(21, TransactionActivityEnum.New, Key, this)); } if (isStoring) { Store(); } }
public ChildrenList_CreateOnlyParentReadonlyRaw(ChildrenList_CreateOnlyParentReadonly childrenList_CreateOnlyParentReadonly) { Key = childrenList_CreateOnlyParentReadonly.Key; Text = childrenList_CreateOnlyParentReadonly.Text; }