From 2aead7260b79cf9e2cdf1f2db7983860dc9c477c Mon Sep 17 00:00:00 2001 From: Rhys Ickeringill Date: Wed, 7 Jan 2026 11:24:46 +1100 Subject: [PATCH] Remove unnecessary type constraint --- .../EntityFrameworkCoreDbSetConfigurationProvider.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/RAIC.Extensions.Configuration.EntityFrameworkCore/EntityFrameworkCoreDbSetConfigurationProvider.cs b/RAIC.Extensions.Configuration.EntityFrameworkCore/EntityFrameworkCoreDbSetConfigurationProvider.cs index 02fc651..8e2f4ef 100644 --- a/RAIC.Extensions.Configuration.EntityFrameworkCore/EntityFrameworkCoreDbSetConfigurationProvider.cs +++ b/RAIC.Extensions.Configuration.EntityFrameworkCore/EntityFrameworkCoreDbSetConfigurationProvider.cs @@ -1,5 +1,4 @@ using System.Linq; -using Microsoft.EntityFrameworkCore; using Microsoft.Extensions.Configuration; namespace RAIC.Extensions.Configuration.EntityFrameworkCore; @@ -14,7 +13,7 @@ internal interface IEntityFrameworkCoreDbSetConfigurationProvider : IConfigurati internal class EntityFrameworkCoreDbSetConfigurationProvider : ConfigurationProvider, IEntityFrameworkCoreDbSetConfigurationProvider - where TDbContext : DbContext, ISettingsDbContext> + where TDbContext : ISettingsDbContext> { private readonly EntityFrameworkCoreDbSetConfigurationSource _configurationSource; @@ -36,7 +35,7 @@ internal class EntityFrameworkCoreDbSetConfigurationProvider : Confi internal class EntityFrameworkCoreDbSetConfigurationSource : IConfigurationSource - where TDbContext : DbContext, ISettingsDbContext> + where TDbContext : ISettingsDbContext> { public required System.Func DbContextFactory { get; init; }