1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- using Microsoft.EntityFrameworkCore;
- using ProductionLineMonitor.Core.Models;
- namespace ProductionLineMonitor.EntityFramework
- {
- public class ProductionLineContext : DbContext
- {
- public ProductionLineContext(DbContextOptions<ProductionLineContext> options)
- : base(options)
- {
-
- }
- protected override void OnModelCreating(ModelBuilder modelBuilder)
- {
- base.OnModelCreating(modelBuilder);
- }
- public DbSet<User>? Users { get; set; }
- public DbSet<Role>? Roles { get; set; }
- public DbSet<ProductionLine>? ProductionLines { get; set; }
- public DbSet<Machine>? Machines { get; set; }
- public DbSet<Cim>? Cims { get; set; }
- public DbSet<MachineOutPutPerHour>? MachineOutPutPerHours { get; set; }
- public DbSet<Recipe>? Recipes { get; set; }
- public DbSet<MachineFaultComparison>? MachineFaultComparisons { get; set; }
- public DbSet<MachineFaultRecord>? MachineFaultRecords { get; set; }
- public DbSet<MachinePowerConsumption>? MachinePowerConsumptions { get; set; }
- public DbSet<MachineStatistic>? MachineStatistics { get; set; }
- #region 工艺数据
- public DbSet<MachineProcessFOG>? MachineProcessFOGs { get; set; }
- public DbSet<MachineProcessPS>? MachineProcessPSs { get; set; }
- public DbSet<MachineProcessBT>? MachineProcessBTs { get; set; }
- public DbSet<MachineProcessPSEPD>? MachineProcessPSEPDs { get; set; }
- #endregion
- public DbSet<Menu>? Menus { get; set; }
- public DbSet<RoleMenu>? RoleMenus { get; set; }
- public DbSet<ElectricEnergyMeter>? ElectricEnergyMeters { get; set; }
- public DbSet<ElectricEnergyMeterLog>? ElectricEnergyMeterLogs { get; set; }
- }
- }
|