コード例 #1
0
 /// <summary>
 /// Called before any property of ChildrenList_Child is updated and before the HasChanged event gets raised
 /// </summary>
 partial void onUpdating(
     string text,
     ChildrenList_Parent parent,
     ChildrenList_ParentNullable?parentNullable,
     ChildrenList_CreateOnlyParent createOnlyParent,
     ChildrenList_CreateOnlyParentNullable?createOnlyParentNullable,
     ref bool isCancelled)
 {
 }
コード例 #2
0
        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();
            }
        }
コード例 #3
0
 public ChildrenList_CreateOnlyParentRaw(ChildrenList_CreateOnlyParent childrenList_CreateOnlyParent)
 {
     Key  = childrenList_CreateOnlyParent.Key;
     Text = childrenList_CreateOnlyParent.Text;
 }