예제 #1
0
 public void DeleteConnector(List <HierarchicalDetail> data)
 {
     foreach (HierarchicalDetail hdata in data)
     {
         HierarchicalDetail originalData = DiagramContext.HierarchicalDetails.Single(h => h.Name == hdata.Name);
         DiagramContext.HierarchicalDetails.DeleteOnSubmit(originalData);
         DiagramContext.SubmitChanges();
     }
 }
예제 #2
0
 public void UpdateConnector(List <HierarchicalDetail> data)
 {
     foreach (HierarchicalDetail hdata in data)
     {
         HierarchicalDetail originalData = DiagramContext.HierarchicalDetails.Single(h => h.Name == hdata.Name);
         originalData.SourceNode = hdata.SourceNode;
         originalData.TargetNode = hdata.TargetNode;
         DiagramContext.SubmitChanges();
     }
 }