Skip to content

Commit 2f29b2e

Browse files
authored
Merge pull request #288666 from MicrosoftDocs/repo_sync_working_branch
Confirm merge from repo_sync_working_branch to main to sync with https://github.com/MicrosoftDocs/azure-docs (branch main)
2 parents 41d291a + ea6d91b commit 2f29b2e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

articles/digital-twins/concepts-models.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ Sometimes, you might want to define a relationship without a specific target, so
166166

167167
Here's an example of a relationship on a DTDL model that doesn't have a target. In this example, the relationship is for defining what sensors a Room might have, and the relationship can connect to any type.
168168

169-
:::code language="json" source="~/digital-twins-docs-samples-getting-started/models/advanced-home-example/IRoom.json" range="2-27" highlight="20-25":::
169+
:::code language="json" source="~/digital-twins-docs-samples-getting-started/models/advanced-home-example/IRoom.json" range="2-30" highlight="22-27":::
170170

171171
### Properties of relationships
172172

@@ -186,7 +186,7 @@ For a comprehensive list of the fields that may appear as part of a component, s
186186

187187
Here's a basic example of a component on a DTDL model. This example shows a Room model that makes use of a thermostat model as a component.
188188

189-
:::code language="json" source="~/digital-twins-docs-samples-getting-started/models/advanced-home-example/IRoom.json" highlight="15-19, 28-41":::
189+
:::code language="json" source="~/digital-twins-docs-samples-getting-started/models/advanced-home-example/IRoom.json" highlight="18-22, 31-47":::
190190

191191
If other models in this solution should also contain a thermostat, they can reference the same thermostat model as a component in their own definitions, just like Room does.
192192

@@ -212,7 +212,7 @@ The following example re-imagines the Home model from the earlier DTDL example a
212212

213213
In this case, Core contributes an ID and name to Home. Other models can also extend the Core model to get these properties as well. Here's a Room model extending the same parent interface:
214214

215-
:::code language="json" source="~/digital-twins-docs-samples-getting-started/models/advanced-home-example/IRoom.json" range="2-9" highlight="6":::
215+
:::code language="json" source="~/digital-twins-docs-samples-getting-started/models/advanced-home-example/IRoom.json" range="2-10" highlight="9":::
216216

217217
Once inheritance is applied, the extending interface exposes all properties from the entire inheritance chain.
218218

0 commit comments

Comments
 (0)