NShape Reference
Delete Method

<< Click to Display Table of Contents >>

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

NShape Reference
Delete Method

Previous pageReturn to chapter overviewNext page

Deletes the given object(s) from the repository.

Syntax

public void Delete()
public void Delete(Design design)
public void Delete(IStyle style)
public void Delete(Model model)
public void Delete(IModelObject modelObject)
public void Delete(IEnumerable<IModelObject> modelObjects)
public void Delete(Template template)
public void Delete(IModelMapping modelMapping)
public void Delete(IEnumerable<IModelMapping> modelMappings)
public void Delete(Diagram diagram)
public void Delete(Shape shape)
public void Delete(IEnumerable<Shape> shapes)

Description

Deletes the given object(s) from the repository. Child objects or contained objects are not deleted when calling this method.
Using this method is recommended if highest performance is need as it does no checks at all. All child objects and/or contained objects have to be deleted by the application, too.

Remarks

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