ABPCMS.EntityFramework/Migrations/SeedData/InitialHostDbBuilder.cs

(完整代码) 658B

using ABPCMS.EntityFramework;
using EntityFramework.DynamicFilters;

namespace ABPCMS.Migrations.SeedData
{
    public class InitialHostDbBuilder
    {
        private readonly ABPCMSDbContext _context;

        public InitialHostDbBuilder(ABPCMSDbContext context)
        {
            _context = context;
        }

        public void Create()
        {
            _context.DisableAllFilters();

            new DefaultEditionsCreator(_context).Create();
            new DefaultLanguagesCreator(_context).Create();
            new HostRoleAndUserCreator(_context).Create();
            new DefaultSettingsCreator(_context).Create();
        }
    }
}

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。