Skip to content

Commit e9a7291

Browse files
committed
Merge pull request #1730 from jeroenheijmans/type-inference-docs-fix
Corrects code examples in Property Name Inference docs
2 parents 1cd841b + d9f275d commit e9a7291

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/build/nest/index-type-inference.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ <h2 id="type-name-inference">Type Name Inference</h2>
6969
<p>This can be configured by setting </p>
7070
<pre><code>settings.SetDefaultPropertyNameInferrer(p=&gt;p);
7171
</code></pre><p>This will leave property names untouched.</p>
72-
<p>Properties marked with <code>[ElasticAttibute(Name=&quot;&quot;)]</code> or <code>[JsonProperty(Name=&quot;&quot;)]</code> will pass the configured name verbatim.</p>
72+
<p>Properties marked with <code>[ElasticProperty(Name=&quot;&quot;)]</code> or <code>[JsonProperty(PropertyName=&quot;&quot;)]</code> will pass the configured name verbatim.</p>
7373
<h2 id="id-inference">Id Inference</h2>
7474
<p>Whenever an object is passed that needs to specify an id (i.e index, bulk operations) the object is inspected to see if it has an <code>Id</code> property and if so, that value will be used.</p>
7575
<p>This inspection happens once per type. The result of the function call that returns the id for an object of type T is cached; therfore, it is only called once per object of type T throughout the applications lifetime.</p>

docs/contents/nest/index-type-inference.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ This can be configured by setting
106106

107107
This will leave property names untouched.
108108

109-
Properties marked with `[ElasticAttibute(Name="")]` or `[JsonProperty(Name="")]` will pass the configured name verbatim.
109+
Properties marked with `[ElasticProperty(Name="")]` or `[JsonProperty(PropertyName="")]` will pass the configured name verbatim.
110110

111111
## Id Inference
112112

0 commit comments

Comments
 (0)