public partial class ProductionSupportEntities : DbContext
{
public ProductionSupportEntities()
: base("name=ProductionSupportEntities")
{
((IObjectContextAdapter)this).ObjectContext.CommandTimeout = 300;
}
protected override void OnModelCreating(DbModelBuilder modelBuilder)
{
throw new UnintentionalCodeFirstException();
}
public DbSet<rfidpcl_barcode> rfidpcl_barcode { get; set; }
public DbSet<rfidpcl_epc> rfidpcl_epc { get; set; }
public DbSet<rfidpcl_mo> rfidpcl_mo { get; set; }
public DbSet<rfidpcl_sku> rfidpcl_sku { get; set; }
public DbSet<rfidpcl_sku_time_log> rfidpcl_sku_time_log { get; set; }
}
在构造函数里增加以上红色标注的代码即可。