You've already forked Extensions.Configuration.EntityFrameworkCore
Working implementation
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
using System;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace RAIC.Extensions.Configuration.EntityFrameworkCore;
|
||||
|
||||
public interface ISettingsDbContext<out TSettingDbSet, out TSetting> : IDisposable
|
||||
where TSettingDbSet : DbSet<TSetting>
|
||||
where TSetting : class, ISetting
|
||||
{
|
||||
TSettingDbSet Settings { get; }
|
||||
}
|
||||
|
||||
|
||||
public interface ISetting
|
||||
{
|
||||
[Key]
|
||||
string Key { get; }
|
||||
|
||||
[Required]
|
||||
string Value { get; }
|
||||
}
|
||||
Reference in New Issue
Block a user