You've already forked Extensions.Configuration.EntityFrameworkCore
Remove unnecessary type constraint
This commit is contained in:
@@ -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<TDbContext> : ConfigurationProvider, IEntityFrameworkCoreDbSetConfigurationProvider
|
||||
where TDbContext : DbContext, ISettingsDbContext<IQueryable<ISetting>>
|
||||
where TDbContext : ISettingsDbContext<IQueryable<ISetting>>
|
||||
{
|
||||
private readonly EntityFrameworkCoreDbSetConfigurationSource<TDbContext> _configurationSource;
|
||||
|
||||
@@ -36,7 +35,7 @@ internal class EntityFrameworkCoreDbSetConfigurationProvider<TDbContext> : Confi
|
||||
|
||||
|
||||
internal class EntityFrameworkCoreDbSetConfigurationSource<TDbContext> : IConfigurationSource
|
||||
where TDbContext : DbContext, ISettingsDbContext<IQueryable<ISetting>>
|
||||
where TDbContext : ISettingsDbContext<IQueryable<ISetting>>
|
||||
{
|
||||
public required System.Func<TDbContext> DbContextFactory { get; init; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user