My task is to add demand data from the SQL server to WaterGEMS model using WaterObjects.NET.
I have the DataTable with 2 columns: Customer Label and Demand. I need to programmatically create a child scenario and add (or update) an alternative demand from DataTable to Customers in a model mapped by Label.From the very laconic WaterObjects.NET programming guide and the examples it’s very difficult to understand how to perform this task.
Let’s start with creating the scenario: to add a Domain element:
IDomainElementManager domainElementManager = dataSet.DomainElementManager(domainElementType.Id);
but how to get domainElementType.Id for child alternative(scenario) ?
How to find DomainElement (Customer) by Field (Label)?
I would be very grateful for the help