Class DecisionModelElementPatchDocument
A patch document specialized to the setting and deleting of elements in a decision model. This document is used instead of standard JsonPatchDocuments because DecisionModelElementDTOs are referentially related to DecisionModelDTO, but don't exist as any of their parameters.
Inheritance
DecisionModelElementPatchDocument
Implements
Inherited Members
Namespace: Quantellia.WMServer.DecisionModeler.Model
Assembly: WMServer.dll
Syntax
public class DecisionModelElementPatchDocument : List<DecisionModelElementPatchDocument.DecisionModelElementPatchOperation>, IList<DecisionModelElementPatchDocument.DecisionModelElementPatchOperation>, ICollection<DecisionModelElementPatchDocument.DecisionModelElementPatchOperation>, IReadOnlyList<DecisionModelElementPatchDocument.DecisionModelElementPatchOperation>, IReadOnlyCollection<DecisionModelElementPatchDocument.DecisionModelElementPatchOperation>, IEnumerable<DecisionModelElementPatchDocument.DecisionModelElementPatchOperation>, IList, ICollection, IEnumerable
Methods
PatchElements(WMPrincipal, DecisionModelDTO, WMAppDbContext)
Patches dm with the IDecisionModelElementDTO changes specified in this document. This will add, modify, and delete elements from DecisionModelElementDTO and DecisionModelDiagramElementDTO, but will not save changes. This method will perform referential validation on the elements.
Declaration
public Task PatchElements(WMPrincipal principal, DecisionModelDTO dm, WMAppDbContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| WMPrincipal | principal | |
| DecisionModelDTO | dm | |
| WMAppDbContext | context |
Returns
| Type | Description |
|---|---|
| Task |