/// <summary> /// Registers the Entity Framework stores. Note: when using the built-in Entity Framework stores, /// the entities MUST be derived from the models contained in the OpenIddict.Models package. /// </summary> /// <param name="builder">The services builder used by OpenIddict to register new services.</param> /// <returns>The <see cref="OpenIddictBuilder"/>.</returns> public static OpenIddictBuilder AddEntityFrameworkCoreStores<TContext>([NotNull] this OpenIddictBuilder builder) where TContext : DbContext { return builder.AddEntityFrameworkCoreStores<TContext, string>(); }