using Microsoft.EntityFrameworkCore; using WMS_GIRAF_Interface.Entities; namespace WMS_GIRAF_Interface.Data; public class MichelinDbContext : DbContext { public MichelinDbContext(DbContextOptions options) : base(options) { } public DbSet DestinationId { get; set; } public DbSet Manage_Main { get; set; } public DbSet IoControl { get; set; } public DbSet IoControlRoute { get; set; } public DbSet Wh_Cell { get; set; } public DbSet ProductInformation { get; set; } public virtual DbSet V_ManageInCount { get; set; } public virtual DbSet V_WhCellEnable { get; set; } protected override void OnModelCreating(ModelBuilder modelBuilder) { //视图无主键 modelBuilder.Entity().HasNoKey(); modelBuilder.Entity().HasNoKey(); } }