米其林项目Giraf的新接口,采用WebAPI形式,会应用在上海玉兰,印度米其林及波兰米其林项目中
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
using Microsoft.EntityFrameworkCore;
|
|
|
|
using WMS_GIRAF_Interface.Entities;
|
|
|
|
|
|
|
|
namespace WMS_GIRAF_Interface.Data;
|
|
|
|
|
|
|
|
public class MichelinDbContext : DbContext
|
|
|
|
{
|
|
|
|
public MichelinDbContext(DbContextOptions<MichelinDbContext> options)
|
|
|
|
: base(options)
|
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
public DbSet<destinationId> DestinationId { get; set; }
|
|
|
|
|
|
|
|
public DbSet<MANAGE_MAIN?> Manage_Main { get; set; }
|
|
|
|
|
|
|
|
public DbSet<IO_CONTROL> IoControl { get; set; }
|
|
|
|
public DbSet<IO_CONTROL_ROUTE> IoControlRoute { get; set; }
|
|
|
|
|
|
|
|
public DbSet<WH_CELL> Wh_Cell { get; set; }
|
|
|
|
|
|
|
|
public DbSet<ProductInformation> ProductInformation { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
public virtual DbSet<V_MANAGE_IN_COUNT> V_ManageInCount { get; set; }
|
|
|
|
|
|
|
|
public virtual DbSet<V_WH_CELL_ENABLE> V_WhCellEnable { get; set; }
|
|
|
|
|
|
|
|
protected override void OnModelCreating(ModelBuilder modelBuilder)
|
|
|
|
{
|
|
|
|
//视图无主键
|
|
|
|
modelBuilder.Entity<V_MANAGE_IN_COUNT>().HasNoKey();
|
|
|
|
modelBuilder.Entity<V_WH_CELL_ENABLE>().HasNoKey();
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|