Update the documentation pages

This commit is contained in:
OpenIddict Bot
2021-01-13 05:32:54 +00:00
parent cba2410ca1
commit f5c3113d95
3 changed files with 8 additions and 8 deletions

View File

@@ -171,7 +171,7 @@ Here's an example for the client credentials grant, used in machine-to-machi
// to replace the default OpenIddict entities.
options.UseOpenIddict();
});
</code></pre><div class="WARNING"><h5>Warning</h5><p>Important: if you change the default entity primary key (e.g. to <code>int</code> or <code>Guid</code> instead of <code>string</code>), make sure you use the <code>options.ReplaceDefaultEntities&lt;TKey&gt;()</code>
</code></pre><div class="WARNING"><h5>Warning</h5><p>If you change the default entity primary key (e.g. to <code>int</code> or <code>Guid</code> instead of <code>string</code>), make sure you use the <code>options.ReplaceDefaultEntities&lt;TKey&gt;()</code>
core extension accepting a <code>TKey</code> generic argument and use the generic <code>options.UseOpenIddict&lt;TKey&gt;()</code> overload to configure EF Core to use the specified type:</p>
<pre><code class="lang-csharp">services.AddOpenIddict()
.AddCore(options =&gt;