public void TearDown() { BusinessObjectCollection<Shape> shapes = new BusinessObjectCollection<Shape>(); shapes.LoadAll(); Shape[] shapesClone = shapes.ToArray(); foreach (Shape shape in shapesClone) { shape.MarkForDelete(); } shapes.SaveAll(); //Shape shape = BOLoader.Instance.GetBusinessObject<Shape>( // "ShapeName = 'MyShape' OR ShapeName = 'MyShapeChanged'"); //if (shape != null) //{ // shape.MarkForDelete(); // shape.Save(); //} //CircleNoPrimaryKey circle = BOLoader.Instance.GetBusinessObject<CircleNoPrimaryKey>( // "ShapeName = 'Circle' OR ShapeName = 'CircleChanged'"); //if (circle != null) //{ // circle.MarkForDelete(); // circle.Save(); //} //FilledCircleInheritsCircleNoPK filledCircle = BOLoader.Instance.GetBusinessObject<FilledCircleInheritsCircleNoPK>( // "ShapeName = 'FilledCircle' OR ShapeName = 'FilledCircleChanged'"); //if (filledCircle != null) //{ // filledCircle.MarkForDelete(); // filledCircle.Save(); //} }
public void TearDown() { BusinessObjectCollection <Shape> shapes = new BusinessObjectCollection <Shape>(); shapes.LoadAll(); Shape[] shapesClone = shapes.ToArray(); foreach (Shape shape in shapesClone) { shape.MarkForDelete(); } shapes.SaveAll(); //Shape shape = BOLoader.Instance.GetBusinessObject<Shape>( // "ShapeName = 'MyShape' OR ShapeName = 'MyShapeChanged'"); //if (shape != null) //{ // shape.MarkForDelete(); // shape.Save(); //} //CircleNoPrimaryKey circle = BOLoader.Instance.GetBusinessObject<CircleNoPrimaryKey>( // "ShapeName = 'Circle' OR ShapeName = 'CircleChanged'"); //if (circle != null) //{ // circle.MarkForDelete(); // circle.Save(); //} //FilledCircleInheritsCircleNoPK filledCircle = BOLoader.Instance.GetBusinessObject<FilledCircleInheritsCircleNoPK>( // "ShapeName = 'FilledCircle' OR ShapeName = 'FilledCircleChanged'"); //if (filledCircle != null) //{ // filledCircle.MarkForDelete(); // filledCircle.Save(); //} }