Skip to content

Commit

Permalink
Example 8
Browse files Browse the repository at this point in the history
  • Loading branch information
HeikoTheissen committed Jul 28, 2023
1 parent 8ffb0e1 commit d01c1bb
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions docs/odata-csdl-json/odata-csdl-json.html
Original file line number Diff line number Diff line change
Expand Up @@ -897,7 +897,7 @@ <h3><a name="EntityTypeObject4" href="#EntityTypeObject4"> Entity Type Object</a
<p>It also MAY contain members representing <a href="#StructuralProperty">structural properties</a> and <a href="#NavigationProperty">navigation properties</a> as well as <a href="#Annotation">annotations</a>.</p>
</section>
<div class="varjson example">
<p>Example 8: a simple entity type</p>
<p>Example <a name="entitytype" href="#entitytype">8</a>: a simple entity type</p>
<div class="sourceCode" id="cb9"><pre class="sourceCode json"><code class="sourceCode json"><span id="cb9-1"><a href="#cb9-1" aria-hidden="true" tabindex="-1"></a><span class="er">&quot;Employee&quot;:</span> <span class="fu">{</span></span>
<span id="cb9-2"><a href="#cb9-2" aria-hidden="true" tabindex="-1"></a><span class="er"> </span> <span class="dt">&quot;$Kind&quot;</span><span class="fu">:</span> <span class="st">&quot;EntityType&quot;</span><span class="fu">,</span></span>
<span id="cb9-3"><a href="#cb9-3" aria-hidden="true" tabindex="-1"></a><span class="er"> </span> <span class="dt">&quot;$Key&quot;</span><span class="fu">:</span> <span class="ot">[</span></span>
Expand Down Expand Up @@ -3098,7 +3098,7 @@ <h3 id="14412-record"><a name="Record" href="#Record">14.4.12 Record</a></h3>
<p>It MAY contain <a href="#Annotation">annotations</a> for itself and its members. Annotations for record members are prefixed with the member name.</p>
</div>
<div class="varjson example">
<p>Example 87: this annotation "morphs" the entity type from example 8 into a structured type with two structural properties <code>GivenName</code> and <code>Surname</code> and two navigation properties <code>DirectSupervisor</code> and <code>CostCenter</code>. The first three properties simply rename properties of the annotated entity type, the fourth adds a calculated navigation property that is pointing to a different service</p>
<p>Example 87: this annotation "morphs" the entity type from <a href="#entitytype">example 8</a> into a structured type with two structural properties <code>GivenName</code> and <code>Surname</code> and two navigation properties <code>DirectSupervisor</code> and <code>CostCenter</code>. The first three properties simply rename properties of the annotated entity type, the fourth adds a calculated navigation property that is pointing to a different service</p>
<div class="sourceCode" id="cb94"><pre class="sourceCode json"><code class="sourceCode json"><span id="cb94-1"><a href="#cb94-1" aria-hidden="true" tabindex="-1"></a><span class="er">&quot;@person.Employee&quot;:</span> <span class="fu">{</span></span>
<span id="cb94-2"><a href="#cb94-2" aria-hidden="true" tabindex="-1"></a> <span class="dt">&quot;@type&quot;</span><span class="fu">:</span> <span class="st">&quot;https://example.org/vocabs/person#org.example.person.Manager&quot;</span><span class="fu">,</span></span>
<span id="cb94-3"><a href="#cb94-3" aria-hidden="true" tabindex="-1"></a> <span class="dt">&quot;@Core.Description&quot;</span><span class="fu">:</span> <span class="st">&quot;Annotation on record&quot;</span><span class="fu">,</span></span>
Expand Down
4 changes: 2 additions & 2 deletions docs/odata-csdl-json/odata-csdl-json.md
Original file line number Diff line number Diff line change
Expand Up @@ -1141,7 +1141,7 @@ properties](#NavigationProperty) as well as [annotations](#Annotation).
:::

::: {.varjson .example}
Example 8: a simple entity type
Example <a name="entitytype" href="#entitytype">8</a>: a simple entity type
```json
"Employee": {
  "$Kind": "EntityType",
Expand Down Expand Up @@ -5335,7 +5335,7 @@ Annotations for record members are prefixed with the member name.
:::

::: {.varjson .example}
Example 87: this annotation "morphs" the entity type from example 8 into
Example 87: this annotation "morphs" the entity type from [example 8](#entitytype) into
a structured type with two structural properties `GivenName` and
`Surname` and two navigation properties `DirectSupervisor` and
`CostCenter`. The first three properties simply rename properties of the
Expand Down
4 changes: 2 additions & 2 deletions docs/odata-csdl-xml/odata-csdl-xml.html
Original file line number Diff line number Diff line change
Expand Up @@ -866,7 +866,7 @@ <h3><a name="AttributeName8.1" href="#AttributeName8.1"> Attribute <code>Name</c
<p>The value of <code>Name</code> is the entity type's name.</p>
</section>
<div class="varxml example">
<p>Example 8: a simple entity type</p>
<p>Example <a name="entitytype" href="#entitytype">8</a>: a simple entity type</p>
<div class="sourceCode" id="cb9"><pre class="sourceCode xml"><code class="sourceCode xml"><span id="cb9-1"><a href="#cb9-1" aria-hidden="true" tabindex="-1"></a>&lt;<span class="kw">EntityType</span><span class="ot"> Name=</span><span class="st">&quot;Employee&quot;</span>&gt;</span>
<span id="cb9-2"><a href="#cb9-2" aria-hidden="true" tabindex="-1"></a> &lt;<span class="kw">Key</span>&gt;</span>
<span id="cb9-3"><a href="#cb9-3" aria-hidden="true" tabindex="-1"></a> &lt;<span class="kw">PropertyRef</span><span class="ot"> Name=</span><span class="st">&quot;ID&quot;</span> /&gt;</span>
Expand Down Expand Up @@ -2883,7 +2883,7 @@ <h3 id="-attribute-property-1"><a name="AttributeProperty62.1" href="#AttributeP
<p>The value of <code>Property</code> is the name of a property of the type of the enclosing <code>edm:Record</code> expression.</p>
</div>
<div class="varxml example">
<p>Example 86: this annotation "morphs" the entity type from example 8 into a structured type with two structural properties <code>GivenName</code> and <code>Surname</code> and two navigation properties <code>DirectSupervisor</code> and <code>CostCenter</code>. The first three properties simply rename properties of the annotated entity type, the fourth adds a calculated navigation property that is pointing to a different service</p>
<p>Example 86: this annotation "morphs" the entity type from <a href="#entitytype">example 8</a> into a structured type with two structural properties <code>GivenName</code> and <code>Surname</code> and two navigation properties <code>DirectSupervisor</code> and <code>CostCenter</code>. The first three properties simply rename properties of the annotated entity type, the fourth adds a calculated navigation property that is pointing to a different service</p>
<pre><code>&lt;Annotation Term=&quot;org.example.person.Employee&quot;&gt;
&lt;Record&gt;
&lt;Annotation Term=&quot;Core.Description&quot; String=&quot;Annotation on record&quot; /&gt;
Expand Down
4 changes: 2 additions & 2 deletions docs/odata-csdl-xml/odata-csdl-xml.md
Original file line number Diff line number Diff line change
Expand Up @@ -1085,7 +1085,7 @@ The value of `Name` is the entity type's name.
:::

::: {.varxml .example}
Example 8: a simple entity type
Example <a name="entitytype" href="#entitytype">8</a>: a simple entity type
```xml
<EntityType Name="Employee">
<Key>
Expand Down Expand Up @@ -5159,7 +5159,7 @@ enclosing `edm:Record` expression.
:::

::: {.varxml .example}
Example 86: this annotation "morphs" the entity type from example 8 into
Example 86: this annotation "morphs" the entity type from [example 8](#entitytype) into
a structured type with two structural properties `GivenName` and
`Surname` and two navigation properties `DirectSupervisor` and
`CostCenter`. The first three properties simply rename properties of the
Expand Down
4 changes: 2 additions & 2 deletions odata-csdl/14 Vocabulary and Annotation.md
Original file line number Diff line number Diff line change
Expand Up @@ -2785,7 +2785,7 @@ Annotations for record members are prefixed with the member name.
:::

::: {.varjson .example}
Example ##ex: this annotation "morphs" the entity type from example 8 into
Example ##ex: this annotation "morphs" the entity type from [example ##entitytype] into
a structured type with two structural properties `GivenName` and
`Surname` and two navigation properties `DirectSupervisor` and
`CostCenter`. The first three properties simply rename properties of the
Expand Down Expand Up @@ -2850,7 +2850,7 @@ enclosing `edm:Record` expression.
:::

::: {.varxml .example}
Example ##ex: this annotation "morphs" the entity type from example 8 into
Example ##ex: this annotation "morphs" the entity type from [example ##entitytype] into
a structured type with two structural properties `GivenName` and
`Surname` and two navigation properties `DirectSupervisor` and
`CostCenter`. The first three properties simply rename properties of the
Expand Down
4 changes: 2 additions & 2 deletions odata-csdl/5 Schema.md
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ properties](#NavigationProperty) as well as [annotations](#Annotation).
:::

::: {.varjson .example}
Example ##ex: a simple entity type
Example ##ex_entitytype: a simple entity type
```json
"Employee": {
  "$Kind": "EntityType",
Expand Down Expand Up @@ -272,7 +272,7 @@ The value of `Name` is the entity type's name.
:::

::: {.varxml .example}
Example ##ex: a simple entity type
Example ##ex_entitytype: a simple entity type
```xml
<EntityType Name="Employee">
<Key>
Expand Down

0 comments on commit d01c1bb

Please sign in to comment.