diff --git a/README.md b/README.md index c7820e2f..704279e8 100644 --- a/README.md +++ b/README.md @@ -145,7 +145,7 @@ services.AddDbContext(options => }); ``` -> **Note:** if you change the default entity primary key (e.g. to `int` or `Guid` instead of `string`), make sure you use the `options.ReplaceDefaultModels()` core extension accepting a `TKey` generic argument and use the generic `options.UseOpenIddict()` overload to configure Entity Framework Core to use the specified key type: +> **Note:** if you change the default entity primary key (e.g. to `int` or `Guid` instead of `string`), make sure you use the `options.ReplaceDefaultEntities()` core extension accepting a `TKey` generic argument and use the generic `options.UseOpenIddict()` overload to configure Entity Framework Core to use the specified key type: ```csharp @@ -155,7 +155,7 @@ services.AddOpenIddict() // Configure OpenIddict to use the default entities with a custom key type. options.UseEntityFrameworkCore() .UseDbContext() - .ReplaceDefaultModels(); + .ReplaceDefaultEntities(); }); services.AddDbContext(options =>