MCPcopy Create free account
hub / github.com/DanWahlin/CustomerManagerStandard / updateEntity

Function updateEntity

CustomerManager/Scripts/breeze.debug.js:15203–15215  ·  view source on GitHub ↗
(mc, targetEntity, node)

Source from the content-addressed store, hash-verified

15201 }
15202
15203 function updateEntity(mc, targetEntity, node) {
15204 updateEntityRef(mc, targetEntity, node);
15205 var entityType = targetEntity.entityType;
15206 entityType._updateTargetFromRaw(targetEntity, node, mc.rawValueFn);
15207
15208 entityType.navigationProperties.forEach(function (np) {
15209 if (np.isScalar) {
15210 mergeRelatedEntity(mc, np, targetEntity, node);
15211 } else {
15212 mergeRelatedEntities(mc, np, targetEntity, node);
15213 }
15214 });
15215 }
15216
15217 function mergeRelatedEntity(mc, navigationProperty, targetEntity, rawEntity) {
15218

Callers 1

mergeEntityFunction · 0.85

Calls 3

updateEntityRefFunction · 0.85
mergeRelatedEntityFunction · 0.85
mergeRelatedEntitiesFunction · 0.85

Tested by

no test coverage detected