DiagramsFactoryCreateNodeFromDto Method
Method to create a NodeModel (for the diagram) from NodeDto (from the database)
Namespace: MobileTrack.Web.Components.ExtensionsAssembly: MobileTrack.Web.Components (in MobileTrack.Web.Components.dll) Version: 0.7+45c8d9adb5970d727cceec44a5ed61aea0016e50
public static NodeModel CreateNodeFromDto(
this NodeDto nodeDto,
IAzureCosmosDb cosmosDb,
ModalDropdownOptions options
)
- nodeDto NodeDto
- Populate NodeDto and register the unique types to blazor behaviorDiagram
- cosmosDb IAzureCosmosDb
- Cosmos DB connection (required for template nodes)
- options ModalDropdownOptions
- Options list in case we're dealing with a dropdown where the user needs to select a business object.
NodeModelCreated node for the diagramIn Visual Basic and C#, you can call this method as an instance method on any object of type
NodeDto. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
| Exception | Thrown if the node type isn't found in the code base. |