es.initInstance( source-node as Item, entity-type-name as String ) as Object
This function is deprecated and will be removed in a future release.
A utility function used by generated code to initialize an instance
data structure with data common across all entities of a given type,
such as a type indicator.
es.initSource
You will not usually
call this function directly in your application code. It is used in
code generated by Entity Services, such as an instance converter module.
You usually will not call this function outside of code generated by
Entity Services. The generated code uses this function to add properties
such as the $type
property and, if appropriate,
$ref
property to an instance. This enables your
customizations of the generated code to be independent of instance
properties used internally by Entity Servcies.