Beispiel #1
0
 public static void SetDeleteOrDiscard(IRhspDataChild dataChild)
 {
     if (dataChild.PendingAction != ChildPendingAction.Create)
     {
         dataChild.PendingAction = ChildPendingAction.Delete;
     }
     else
     {
         dataChild.PendingAction = ChildPendingAction.Discard;
     }
 }
 public static bool IsDeleteOrDiscard(IRhspDataChild dataChild)
 {
     return((dataChild.PendingAction == ChildPendingAction.Delete) ||
            (dataChild.PendingAction == ChildPendingAction.Discard));
 }
 private TChild withParent <TChild>(IRhspDataChild child, IRhspDataParent parent)
     where TChild : IRhspDataChild
 {
     child.Parent = parent;
     return((TChild)child);
 }
 protected void SetParent(IRhspDataParent parent, IRhspDataChild child)
 {
     child.Parent   = parent;
     child.ParentID = parent.DataID;
 }