OL.FrameCore.Repository.EF/DataContext.cs

(完整代码) 988B

using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Text;
using OL.FrameCore.Domain.Entity;

namespace OL.FrameCore.Repository.EF
{
    public class DataContext : DbContext
    {
        public DataContext(DbContextOptions options)
             : base(options)
        {

        }



        public DbSet<SysUser> User { get; set; }
        public DbSet<SysDept> Dept { get; set; }
        public DbSet<SysRole> Role { get; set; }
        public DbSet<SysModule> Module { get; set; }


        public DbSet<SysRoleModuleMap> RoleModuleMap { get; set; }
        public DbSet<SysUserRoleMap> UserRoleMap { get; set; }
        public DbSet<SysUserModuleMap> UserModuleMap { get; set; }

        public DbSet<SysUserOperateLog> UserOperateLog { get; set; }
        public DbSet<SysUserLoginLog> UserLoginLog { get; set; }
        public DbSet<SysErrorLog> ErrorLog { get; set; }
        public DbSet<AppArticle> Article { get; set; }
    }
}

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

AI 解读

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

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