Entities and entity objects - SmartPlant Foundation - IM Update 44 - Customization & Programming - Hexagon

SmartPlant Foundation Customization

Language
English
Product
SmartPlant Foundation
Search by Category
Customization & Programming
SmartPlant Foundation / SDx Version
10

The returned object must have a property with the following attribute, System.ComponentModel.DataAnnotations.KeyAttribute attribute, which acts as the key. The entity method must have a parameter with the [ExposedKey] attribute. The following example shows the EntitySet and child Entity:

This server code is represented in SmartPlant Foundation using the following model XML:

These entity objects are exposed using the following GETs:

http://[Local Host]/spfserver/api/v1/ExposedEntitySet

http://[Local Host]/spfserver/api/v1/ExposedEntitySet('IdForObject')