NShape Reference
IEntity.LoadFields Method

<< Click to Display Table of Contents >>

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

NShape Reference
IEntity.LoadFields Method

Previous pageReturn to chapter overviewNext page

Deserializes the entity's fields from the repository.

Syntax

void LoadFields(IRepositoryReader reader, int version)

Description

The implementation calls the reader's read method for each of the fields in the sequence defined by the property definitions (see GetPropertyDefinitions).

The implementation must call the base class implementation with a perhaps modified version number. For example, if the entity has version 180 but is based on version 130 of its base entity class, the method will be called with 180 as the version argument, but it must call its base class with 130.

Parameters

Name

Description

reader

Property reading interface to the repository.

version

Format version in which the entity was serialized.