NShape Reference
InsertAll Method

<< Click to Display Table of Contents >>

Navigation:  Class Reference > Namespace Dataweb.NShape > IRepository Interface >

NShape Reference
InsertAll Method

Previous pageReturn to chapter overviewNext page

Inserts the given object(s) including all child objects and contained objects from the repository.

Syntax

public void InsertAll(Design design)
public void InsertAll(Template template)
public void InsertAll(Diagram diagram)
public void InsertAll(Shape shape, Diagram diagram)
public void InsertAll(Shape shape, Shape parent)
public void InsertAll(Shape shape, Template template)
public void InsertAll(IEnumerable<Shape> shapes, Diagram diagram)
public void InsertAll(IEnumerable<Shape> shapes, Shape parent)

Description

Inserts the given object(s) including all child objects and contained objects from the repository but you have to make sure that there are no objects (that are not part of the repository) referencing the inserted one(s), e.g. a shape connected to one of the inserted shapes.

Remarks

You can enable consistency checks when linking the project "NShape" to your application's solution and add the conditional define REPOSITORY_CHECK.