Exemplo n.º 1
0
 private void CreateChildOrderingsFor(ParentElementBuilder parent)
 {
     foreach (ParentElementBuilder.ChildOrdering eachOrdering in parent.ChildOrderings)
     {
         DB_ChildOrdering ordering = new DB_ChildOrdering
         {
             Parent       = parent.FlexDB_ID,
             Child_Before = eachOrdering.Before.FlexDB_ID,
             Child_After  = eachOrdering.After.FlexDB_ID
         };
         DB_ChildOrderings.InsertOnSubmit(ordering);
     }
     //SubmitChanges();
 }
Exemplo n.º 2
0
 private void DeleteChildOrderingsFor(ParentElementBuilder parent)
 {
     DB_ChildOrderings.DeleteAllOnSubmit(DB_ChildOrderings
                                         .Where(ordering => ordering.Parent.Equals(parent.FlexDB_ID)));
     //SubmitChanges();
 }