NShape Reference
IEntity.SaveInnerObjects Method

<< Click to Display Table of Contents >>

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

NShape Reference
IEntity.SaveInnerObjects Method

Previous pageReturn to chapter overviewNext page

Serializes the entity's inner objects into the repository.

Syntax

void SaveInnerObjects(string propertyName, IRepositoryWriter writer, int version)

Description

Inner objects are sequences of more complex data than simple types.

For hints on versioning see the SaveFields method.

Parameters

Name

Description

propertyName

Name of inner objects property to write.

writer

Property writing interface to the repository.

version

Format version in which the entity should be serialized.

Exceptions

Exception

Condition

RepositoryException

Writing data to the data source did not succeed. An inner exception indicates the data source specific reason. For instance, when writing to an XML file this exception can occur when the disk is full.

InvalidOperationException

The fields written do not match the property definitions from GetPropertyDefinitions.