mirror of
https://gitee.com/ccnetcore/Yi
synced 2026-03-02 15:50:54 +08:00
27 lines
745 B
C#
27 lines
745 B
C#
using Microsoft.EntityFrameworkCore;
|
|
using Volo.Abp.Data;
|
|
using Volo.Abp.EntityFrameworkCore;
|
|
using Volo.Abp.MultiTenancy;
|
|
|
|
namespace Volo.Abp.SettingManagement.EntityFrameworkCore;
|
|
|
|
[IgnoreMultiTenancy]
|
|
[ConnectionStringName(AbpSettingManagementDbProperties.ConnectionStringName)]
|
|
public class SettingManagementDbContext : AbpDbContext<SettingManagementDbContext>, ISettingManagementDbContext
|
|
{
|
|
public DbSet<Setting> Settings { get; set; }
|
|
|
|
public SettingManagementDbContext(DbContextOptions<SettingManagementDbContext> options)
|
|
: base(options)
|
|
{
|
|
|
|
}
|
|
|
|
protected override void OnModelCreating(ModelBuilder builder)
|
|
{
|
|
base.OnModelCreating(builder);
|
|
|
|
builder.ConfigureSettingManagement();
|
|
}
|
|
}
|