NShape Reference
IEntity Interface

<< Click to Display Table of Contents >>

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

NShape Reference
IEntity Interface

Previous pageReturn to chapter overviewNext page

Offers the operations necessary for loading from and saving to repositories.

Syntax

public interface IEntity

Description

All classes wanting to save themselves into the repository must implement that interface. Usually the interface is implemented explicitly, because other client classes but the repository class will usually not use its methods.

Members

Name

Description

AssignId

Assigns an id to the entity.

Delete

Deletes an entity from the repository.

Id

Indicates the unique identifier of the entity.

LoadFields

Loads the fields of the entity from the repository.

LoadInnerObjects

Deserializes the entity's inner objects from the repository.

SaveFields

Serializes the entity's fields to the repository.

SaveInnerObjects

Serializes the entity's inner objects into the repository.

Pseudo-Members

Name

Description

EntityTypeName

Receives the entity type name.

GetPropertyDefinitions

Retrieves the persistable properties of an entity type.

Requirements

Namespace: Dataweb.NShape.Advanced

Assembly: Dataweb.NShape