From 2ff81b8c1b9eb8024d59e5da59ac5c4b39cedc4b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Chalet?= Date: Fri, 6 Mar 2026 14:26:11 +0100 Subject: [PATCH] Update the XML documentation and decorate OpenIddictEntityFrameworkCoreCustomizer with [EditorBrowsable(EditorBrowsableState.Never)] --- ...OpenIddictEntityFrameworkCoreCustomizer.cs | 2 ++ .../OpenIddictEntityFrameworkCoreHelpers.cs | 36 +++++++++---------- 2 files changed, 20 insertions(+), 18 deletions(-) diff --git a/src/OpenIddict.EntityFrameworkCore/OpenIddictEntityFrameworkCoreCustomizer.cs b/src/OpenIddict.EntityFrameworkCore/OpenIddictEntityFrameworkCoreCustomizer.cs index 9789ebdb..8ee0f83e 100644 --- a/src/OpenIddict.EntityFrameworkCore/OpenIddictEntityFrameworkCoreCustomizer.cs +++ b/src/OpenIddict.EntityFrameworkCore/OpenIddictEntityFrameworkCoreCustomizer.cs @@ -4,6 +4,7 @@ * the license and the contributors participating to this project. */ +using System.ComponentModel; using System.Diagnostics.CodeAnalysis; using OpenIddict.EntityFrameworkCore.Models; @@ -13,6 +14,7 @@ namespace OpenIddict.EntityFrameworkCore; /// Represents a model customizer able to register the entity sets /// required by the OpenIddict stack in an Entity Framework Core context. /// +[EditorBrowsable(EditorBrowsableState.Never)] public sealed class OpenIddictEntityFrameworkCoreCustomizer< [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] TApplication, [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] TAuthorization, diff --git a/src/OpenIddict.EntityFrameworkCore/OpenIddictEntityFrameworkCoreHelpers.cs b/src/OpenIddict.EntityFrameworkCore/OpenIddictEntityFrameworkCoreHelpers.cs index ee927da2..3c7d5df3 100644 --- a/src/OpenIddict.EntityFrameworkCore/OpenIddictEntityFrameworkCoreHelpers.cs +++ b/src/OpenIddict.EntityFrameworkCore/OpenIddictEntityFrameworkCoreHelpers.cs @@ -22,8 +22,8 @@ public static class OpenIddictEntityFrameworkCoreHelpers /// Registers the OpenIddict entity sets in the Entity Framework Core context /// using the default OpenIddict models and the default key type (string). /// - /// The builder used to configure the Entity Framework context. - /// The Entity Framework context builder. + /// The builder used to configure the Entity Framework Core context. + /// The Entity Framework Core context builder. public static DbContextOptionsBuilder UseOpenIddict(this DbContextOptionsBuilder builder) => builder.UseOpenIddict - /// The builder used to configure the Entity Framework context. - /// The Entity Framework context builder. + /// The builder used to configure the Entity Framework Core context. + /// The Entity Framework Core context builder. public static DbContextOptionsBuilder UseOpenIddict(this DbContextOptionsBuilder builder) where TContext : DbContext { @@ -51,8 +51,8 @@ public static class OpenIddictEntityFrameworkCoreHelpers /// Note: when using a custom key type, the new key type MUST be registered by calling /// . /// - /// The builder used to configure the Entity Framework context. - /// The Entity Framework context builder. + /// The builder used to configure the Entity Framework Core context. + /// The Entity Framework Core context builder. public static DbContextOptionsBuilder UseOpenIddict< [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] TKey>(this DbContextOptionsBuilder builder) where TKey : notnull, IEquatable @@ -69,8 +69,8 @@ public static class OpenIddictEntityFrameworkCoreHelpers /// Note: when using a custom key type, the new key type MUST be registered by calling /// . /// - /// The builder used to configure the Entity Framework context. - /// The Entity Framework context builder. + /// The builder used to configure the Entity Framework Core context. + /// The Entity Framework Core context builder. public static DbContextOptionsBuilder UseOpenIddict< [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] TKey, TContext>(this DbContextOptionsBuilder builder) @@ -89,8 +89,8 @@ public static class OpenIddictEntityFrameworkCoreHelpers /// Note: when using custom entities, the new entities MUST be registered by calling /// . /// - /// The builder used to configure the Entity Framework context. - /// The Entity Framework context builder. + /// The builder used to configure the Entity Framework Core context. + /// The Entity Framework Core context builder. public static DbContextOptionsBuilder UseOpenIddict< [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] TApplication, [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] TAuthorization, @@ -124,8 +124,8 @@ public static class OpenIddictEntityFrameworkCoreHelpers /// Note: when using custom entities, the new entities MUST be registered by calling /// . /// - /// The builder used to configure the Entity Framework context. - /// The Entity Framework context builder. + /// The builder used to configure the Entity Framework Core context. + /// The Entity Framework Core context builder. public static DbContextOptionsBuilder UseOpenIddict< [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] TApplication, [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] TAuthorization, @@ -149,8 +149,8 @@ public static class OpenIddictEntityFrameworkCoreHelpers /// Registers the OpenIddict entity sets in the Entity Framework Core context /// using the default OpenIddict models and the default key type (string). /// - /// The builder used to configure the Entity Framework context. - /// The Entity Framework context builder. + /// The builder used to configure the Entity Framework Core context. + /// The Entity Framework Core context builder. public static ModelBuilder UseOpenIddict(this ModelBuilder builder) => builder.UseOpenIddict. /// - /// The builder used to configure the Entity Framework context. - /// The Entity Framework context builder. + /// The builder used to configure the Entity Framework Core context. + /// The Entity Framework Core context builder. public static ModelBuilder UseOpenIddict< [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] TKey>(this ModelBuilder builder) where TKey : notnull, IEquatable => builder.UseOpenIddict, @@ -182,8 +182,8 @@ public static class OpenIddictEntityFrameworkCoreHelpers /// Note: when using custom entities, the new entities MUST be registered by calling /// . /// - /// The builder used to configure the Entity Framework context. - /// The Entity Framework context builder. + /// The builder used to configure the Entity Framework Core context. + /// The Entity Framework Core context builder. public static ModelBuilder UseOpenIddict< [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] TApplication, [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] TAuthorization,