

:::code language="json" source="~/digital-twins-docs-samples/models/Room.json"::: When you are finished, the updated model should match this:

:::code language="json" source="~/digital-twins-docs-samples/models/Room.json" range="21-24"::: Underneath the RoomName property that you just added, paste the following code to add the ability for this type of twin to form contains relationships with other twins: :::code language="json" source="~/digital-twins-docs-samples/models/Room.json" range="16-20":::Īdd a relationship. Underneath the HumidityLevel property that ends on line 15, paste the following code to add a RoomName property to the room:

If you use something different than HumidityLevel, remember what you used and continue using that instead of HumidityLevel throughout the tutorial).Īdd a property. Change the name of the Humidity property to HumidityLevel (or something different if you want. Any number greater than the current version number will also work.Įdit a property. Do this by changing the 1 at the end of the value to a 2. Update the version number, to indicate that you are providing a more-updated version of this model.
