NShape Reference
RepositoryWriter Class

<< Click to Display Table of Contents >>

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

NShape Reference
RepositoryWriter Class

Previous pageReturn to chapter overviewNext page

Base class for a writer used for writing objects with embedded objects to a data store.

Syntax

public abstract class RepositoryWriter : IRepositoryWriter

Description

Public Methods

Name

Description

BeginWriteInnerObject

Fetches the next inner object in a set of inner object.

BeginWriteInnerObjects

Fetches the next set of inner objects and prepares them for writing.

DeleteInnerObjects

Deletes the current set of inner objects.

EndWriteInnerObject

Finishes writing an inner object.

EndWriteInnerObjects

Finishes writing the current set of inner objects.

WriteBool

Writes a boolean value.

WriteByte

Writes a byte value.

WriteChar

Writes a character value.

WriteDate

Writes a date and time value.

WriteDouble

Writes a double precision floating point number.

WriteFloat

Writes a single precision floating point number.

WriteId

Writes an IEntity.Id value.

WriteImage

Writes an image value.

WriteInt16

Writes a 16 bit integer value.

WriteInt32

Writes a 32 bit integer value.

WriteInt64

Writes a 64 bit integer value.

WriteModelObject

Writes a model object.

WriteString

Writes a string value.

WriteStyle

Writes a style.

WriteTemplate

Writes a template.

Protected Properties and Fields

Name

Description

Cache

The IStoreCache that contains the data to read.

Entity

When reading inner objects, this property stores the owner entity of the inner objects. Otherwise, this property is null/Nothing.

innerObjectsWriter

When reading inner objects, this field holds the reader used for reading these inner objects.

PropertyIndex

Indicates the current index in the list of property info of the entity type.

propertyInfos

A list of property info of the entity type to read.

Protected Methods

Name

Description

Constructor

Constructs a new RepositoryReader instance.

DoBeginWriteInnerObject

Implementation of BeginWriteInnerObject.

DoBeginWriteInnerObjects

Implementation of BeginWriteInnerObjects.

DoDeleteInnerObjects

Implementation of DeleteInnerObjects.

DoEndWriteInnerObject

Implementation of EndWriteInnerObject.

DoEndWriteInnerObjects

Implementation of EndWriteInnerObjects.

DoWriteBool

Implementation of writing a boolean value.

DoWriteByte

Implementation of writing a byte value.

DoWriteChar

Implementation of writing a character value.

DoWriteDate

Implementation of writing a date value.

DoWriteDouble

Implementation of writing a double precision floating point number.

DoWriteFloat

Implementation of writing a single precision floating point number.

DoWriteId

Implementation of writing an IEntity.Id value.

DoWriteImage

Implementation of writing an image.

DoWriteInt16

Implementation of writing a 16 bit integer number.

DoWriteInt32

Implementation of writing a 32 bit integer number.

DoWriteInt64

Implementation of writing a 64 bit integer number.

DoWriteModelObject

Implementation of writing a link to a model object (usually its IEntity.Id value).

DoWriteString

Implementation of writing a  value.

DoWriteStyle

Implementation of writing a link to a style (usually its IEntity.Id value).

DoWriteTemplate

Implementation of writing a link to a template (usually its IEntity.Id value).

Finish

Commits inner object data to the data store.

Prepare

Specifies the entity to write next. Is null when going to write an inner object.

Reset

Reinitializes the writer to work with given property infos.

Derived Classes

Derived classes are:

DbParameterReader

StringReader

XmlStoreReader

Requirements

Namespace: Dataweb.NShape.Advanced

Assembly: Dataweb.NShape