Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/build/nest/index-type-inference.html
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ <h2 id="type-name-inference">Type Name Inference</h2>
<p>This can be configured by setting </p>
<pre><code>settings.SetDefaultPropertyNameInferrer(p=&gt;p);
</code></pre><p>This will leave property names untouched.</p>
<p>Properties marked with <code>[ElasticAttibute(Name=&quot;&quot;)]</code> or <code>[JsonProperty(Name=&quot;&quot;)]</code> will pass the configured name verbatim.</p>
<p>Properties marked with <code>[ElasticProperty(Name=&quot;&quot;)]</code> or <code>[JsonProperty(PropertyName=&quot;&quot;)]</code> will pass the configured name verbatim.</p>
<h2 id="id-inference">Id Inference</h2>
<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>
<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>
Expand Down
2 changes: 1 addition & 1 deletion docs/contents/nest/index-type-inference.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ This can be configured by setting

This will leave property names untouched.

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

## Id Inference

Expand Down