using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.EntityFrameworkCore;
using AMESCoreStudio.WebApi;
using AMESCoreStudio.WebApi.Models.SYS;
namespace AMESCoreStudio.WebApi
{
///
///
///
public class AMESContext : DbContext
{
///
///
///
///
public AMESContext(DbContextOptions options)
: base(options)
{
//Configuration.ProxyCreationEnabled = false;
}
///
///
///
public DbSet IDKeys { get; set; }
///
///
///
public DbSet AuthInfo { get; set; }
///
///
///
public DbSet SystemInfoes { get; set; }
///
///
///
public DbSet ModuleInfoes { get; set; }
///
///
///
public DbSet ProgramInfoes { get; set; }
///
///
///
public DbSet RoleInfoes { get; set; }
///
///
///
public DbSet UserInfoes { get; set; }
///
///
///
public DbSet DeptInfoes { get; set; }
///
///
///
public DbSet RoleModules { get; set; }
///
///
///
///
protected override void OnModelCreating(ModelBuilder modelBuilder)
{
/*
modelBuilder.Entity()
.HasOne(m => m.Module);
*/
}
///
///
///
public DbSet RolePrograms { get; set; }
///
///
///
public DbSet UserRoles { get; set; }
}
}