NShape Reference
ModelMappingBase Class

<< Click to Display Table of Contents >>

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

NShape Reference
ModelMappingBase Class

Previous pageReturn to chapter overviewNext page

Base class for property mappings.

Syntax

public class ModelMappingBase : IModelMapping

Description

Base class for property mappings.

Public Properties

Name

Description

CanGetFloat

Indicates wether the mapped model object property can be converted to a float value.

CanGetInteger

Indicates wether the mapped model object property can be converted to an integer value.

CanGetString

Indicates wether the mapped model object property can be converted to a string value.

CanGetStyle

Indicates wether the mapped model object property can be converted to a style.

CanSetFloat

Indicates wether a float value can be converted to the mapped shape property.

CanSetInteger

Indicates wether an integer value can be converted to the mapped shape property.

CanSetString

Indicates wether a string value can be converted to the mapped shape property.

Id

Implementation of IEntity.Id.

ModelPropertyId

Specifies the PropertyId of the model object's property.

ShapePropertyId

Specifies the PropertyId of the shape's property.

Public Methods

Name

Description

AssignId

Implementation of IEntity.AssignId.

Delete

Implementation of IEntity.Delete.

GetFloat

Gets a float value converted from the mapped model object's property value.

GetInteger

Gets an integer value converted from the mapped model object's property value.

GetPropertyDefinitions

Implementation of the IEntity.GetPropertyDefinitions pseudo member.

GetString

Gets a string value converted from the mapped model object's property value.

GetStyle

Gets a style converted from the mapped model object's property value.

LoadFields

Implementation of IEntity.LoadFields.

LoadInnerObjects

Implementation of IEntity.LoadInnerObjects.

SaveFields

Implementation of IEntity.SaveFields.

SaveInnerObjects

Implementation of IEntity.SaveInnerObjects.

SetFloat

Sets the float value to be converted to the mapped shape's property.

SetInteger

Sets the integer value to be converted to the mapped shape's property.

SetString

Sets the string value to be converted to the mapped shape's property.

Protected Methods

Name

Description

Constructor

Constructs a new ModelMappingBase instance.

Derived Classes

Derived classes are:

FormatModelMapping

NumericModelMapping

StyleModelMapping

Requirements

Namespace: Dataweb.NShape.Advanced

Assembly: Dataweb.NShape