NShape Reference
Store Class

<< Click to Display Table of Contents >>

Navigation:  Class Reference > Namespace Dataweb.NShape.Advanced >

NShape Reference
Store Class

Previous pageReturn to chapter overviewNext page

Transfers NShape objects from an IStoreCache to a data source.

Syntax

public abstract class Store : Component

Description

Usually an application does not call Store methods. Instead it creates an instance of a specialized store class, sets its properties and attaches it to a CachedRepository object (via its Store property). The functionality is then accessed via the IRepository interface of the CachedRepository object.

Public Properties

Name

Description

ProjectName

Specifies the name of the project.

Version

Specifies the main version of the storage format.

Public Methods

Name

Description

CanModifyVersion

Specifies whether the store can be upgraded to a newer repository Load/Save version.

CheckModelObjectInUse

Checks if the model object associated with the given id is still in use.

CheckShapeTypeInUse

Checks if the given shape type is still in use.

CheckStyleInUse

Checks if the style associated with the given id is still in use.

CheckTemplateInUse

Checks if the template associated with the given id is still in use.

Close

Closes the project store.

Create

Creates a project store in the data source.

Erase

Deletes the project store in the data source.

Exists

Tests whether the project already exists in the data source.

LoadChildModelObjects

Loads child model objects of the indicated model object.

LoadChildShapes

Loads child shapes of the indicated shape.

LoadDesigns

Loads general designs or a project design.

LoadDiagrams

Loads diagrams of the current project.

LoadDiagramShapes

Loads shapes of the indicated diagram.

LoadModel

Loads the model of the project.

LoadModelModelObjects

Loads model objects of the indicated model.

LoadProjects

Loads projects stored in the store.

LoadTemplateModelObjects

Loads model objects of the indicated template.

LoadTemplates

Loads template definitions of the current project.

LoadTemplateShapes

Load shapes of the indicated template.

Open

Opens a project store in the data source.

SaveChanges

Commits all modifications in the cache to the data store.

Derived Classes

Derived classes are:

AdoNetStore

XmlStore

Requirements

Namespace: Dataweb.NShape

Assembly: Dataweb.NShape

See Also

IStoreCache Interface

Concepts: The Stores