using System; using System.ComponentModel.DataAnnotations; using Microsoft.EntityFrameworkCore; namespace RAIC.Extensions.Configuration.EntityFrameworkCore; public interface ISettingsDbContext : IDisposable where TSettings : System.Linq.IQueryable { TSettings Settings { get; } } public interface ISettingsDbContextFactory where TDbContext : DbContext { static abstract TDbContext Create(DbContextOptions options); } public interface ISetting { [Key] string Key { get; } [Required] string Value { get; } }