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.

107 lines
6.4 KiB

1 year ago
using System.Data.Entity;
using System.Data.Entity.ModelConfiguration.Conventions;
using ChangkeTec.SDMS.Model.ExchangeCenterTables;
namespace ChangkeTec.SDMS.Model
{
[DbConfigurationType(typeof(SqlDbConfiguration))]
public class ExchangeCenterContext : DbContext
{
public ExchangeCenterContext() : base("name=ExchangeCenterContext")
{
}
public ExchangeCenterContext(string strConn) : base(strConn)
{
//Database.SetInitializer(new ExchangeCenterDatabaseInitializer());
}
public virtual DbSet<TEA_CONFIG> TEA_CONFIG { get; set; }
public virtual DbSet<TEA_TASK> TEA_TASK { get; set; }
public virtual DbSet<TEA_TASK_SUB> TEA_TASK_SUB { get; set; }
public virtual DbSet<TEA_TASK_SUB_HIS> TEL_TASK_SUB_HIS { get; set; }
public virtual DbSet<TEA_DATA_ERROR_LOG> TEA_DATA_ERROR_LOG { get; set; }
public virtual DbSet<TEA_TASK_SUB_READ_LOG> TEA_TASK_SUB_READ_LOG { get; set; }
public virtual DbSet<TEA_TABLE> TEA_TABLE { get; set; }
public virtual DbSet<TEA_SYSTEM> TEA_SYSTEM { get; set; }
public virtual DbSet<TEA_SUBSCRIBE> TEA_SUBSCRIBE { get; set; }
public virtual DbSet<TES_SUPPLIER> TES_SUPPLIER { get; set; }
public virtual DbSet<TES_CUSTOMER> TES_CUSTOMER { get; set; }
public virtual DbSet<TES_DOMAIN> TES_DOMAIN { get; set; }
public virtual DbSet<TES_WORK_CENTER> TES_WORK_CENTER { get; set; }
public virtual DbSet<TES_SUPPLIER_TYPE> TES_SUPPLIER_TYPE { get; set; }
public virtual DbSet<TES_SUB_ACCOUNT> TES_SUB_ACCOUNT { get; set; }
public virtual DbSet<TES_SITE> TES_SITE { get; set; }
public virtual DbSet<TES_CODE> TES_CODE { get; set; }
public virtual DbSet<TES_CODE_TYPE> TES_CODE_TYPE { get; set; }
public virtual DbSet<TES_PRODUCT_LINE> TES_PRODUCT_LINE { get; set; }
public virtual DbSet<TES_PROJECT> TES_PROJECT { get; set; }
public virtual DbSet<TES_DEPARTMENT> TES_DEPARTMENT { get; set; }
public virtual DbSet<TES_ENTITY> TES_ENTITY { get; set; }
public virtual DbSet<TES_CUSTOMER_TYPE> TES_CUSTOMER_TYPE { get; set; }
public virtual DbSet<TES_COST_CENTER> TES_COST_CENTER { get; set; }
public virtual DbSet<TES_ACCOUNT> TES_ACCOUNT { get; set; }
public virtual DbSet<TES_EDI_DATA> TES_EDI_DATA { get; set; }
public virtual DbSet<TES_ROUTING> TES_ROUTING { get; set; }
public virtual DbSet<TES_PART_MSTR> TES_PART_MSTR { get; set; }
public virtual DbSet<TES_PART_DET> TES_PART_DET { get; set; }
public virtual DbSet<TES_MES_DATA> TES_MES_DATA { get; set; }
public virtual DbSet<TES_LOCATION> TES_LOCATION { get; set; }
public virtual DbSet<TES_WMS_LOCATION> TES_WMS_LOCATION { get; set; }
public virtual DbSet<TES_LINE> TES_LINE { get; set; }
public virtual DbSet<TES_COLOR> TES_COLOR { get; set; }
public virtual DbSet<TES_BOM> TES_BOM { get; set; }
public virtual DbSet<TES_PACK> TES_PACK { get; set; }
public virtual DbSet<TES_SUPPLIER_PART> TES_SUPPLIER_PART { get; set; }
public virtual DbSet<TES_CUSTOMER_PART> TES_CUSTOMER_PART { get; set; }
public virtual DbSet<TES_LINE_PART> TES_LINE_PART { get; set; }
public virtual DbSet<TES_PURCHASE_PRICE> TES_PURCHASE_PRICE { get; set; }
public virtual DbSet<TES_SALE_PRICE> TES_SALE_PRICE { get; set; }
public virtual DbSet<TES_STAND_COST_PRICE> TES_STAND_COST_PRICE { get; set; }
public virtual DbSet<TES_TEAM> TES_TEAM { get; set; }
public virtual DbSet<TES_SHIFT> TES_SHIFT { get; set; }
public virtual DbSet<TED_TRANSFER_MSTR> TED_TRANSFER_MSTR { get; set; }
public virtual DbSet<TED_TRANSFER_DET> TED_TRANSFER_DET { get; set; }
public virtual DbSet<TED_STOCK> TED_STOCK { get; set; }
public virtual DbSet<TED_RETURN_MSTR> TED_RETURN_MSTR { get; set; }
public virtual DbSet<TED_RETURN_DET> TED_RETURN_DET { get; set; }
public virtual DbSet<TED_RCTUNP_MSTR> TED_RCTUNP_MSTR { get; set; }
public virtual DbSet<TED_RCTUNP_DET> TED_RCTUNP_DET { get; set; }
public virtual DbSet<TED_RECEIPT_MSTR> TED_RECEIPT_MSTR { get; set; }
public virtual DbSet<TED_RECEIPT_DET> TED_RECEIPT_DET { get; set; }
public virtual DbSet<TED_ISSUNP_MSTR> TED_ISSUNP_MSTR { get; set; }
public virtual DbSet<TED_ISSUNP_DET> TED_ISSUNP_DET { get; set; }
public virtual DbSet<TED_BK_MSTR> TED_BK_MSTR { get; set; }
public virtual DbSet<TED_BK_DET> TED_BK_DET { get; set; }
public virtual DbSet<TED_CHECK_MSTR> TED_CHECK_MSTR { get; set; }
public virtual DbSet<TED_CHECK_DET> TED_CHECK_DET { get; set; }
public virtual DbSet<TED_MRP_MSTR> TED_MRP_MSTR { get; set; }
public virtual DbSet<TED_MRP_DET> TED_MRP_DET { get; set; }
public virtual DbSet<TED_INVOICE_MSTR> TED_INVOICE_MSTR { get; set; }
public virtual DbSet<TED_INVOICE_DET> TED_INVOICE_DET { get; set; }
public virtual DbSet<TED_INVOICE_ADD> TED_INVOICE_ADD { get; set; }
public virtual DbSet<TED_ASN_MSTR> TED_ASN_MSTR { get; set; }
public virtual DbSet<TED_ASN_DET> TED_ASN_DET { get; set; }
public virtual DbSet<TED_INJECTION> TED_INJECTION { get; set; }
public virtual DbSet<TED_SPRAYING> TED_SPRAYING { get; set; }
public virtual DbSet<TED_SPRAYING_REPAIR> TED_SPRAYING_REPAIR { get; set; }
public virtual DbSet<TED_ASSEMBLE> TED_ASSEMBLE { get; set; }
public virtual DbSet<TED_LED> TED_LED { get; set; }
public virtual DbSet<TED_FIXED_MSTR> TED_FIXED_MSTR { get; set; }
public virtual DbSet<TED_FIXED_DET> TED_FIXED_DET { get; set; }
public virtual DbSet<TED_PO_DET> TED_POD_DET { get; set; }
public virtual DbSet<TED_PO_MSTR> TED_PO_MSTR { get; set; }
public virtual DbSet<TED_SO_DET> TED_SO_DET { get; set; }
public virtual DbSet<TED_SO_MSTR> TED_SO_MSTR { get; set; }
public virtual DbSet<TED_KANBAN_MSTR> TED_KANBAN_MSTR { get; set; }
public virtual DbSet<TED_KANBAN_DET> TED_KANBAN_DET { get; set; }
protected override void OnModelCreating(DbModelBuilder modelBuilder)
{
base.OnModelCreating(modelBuilder);
modelBuilder.Conventions.Remove<DecimalPropertyConvention>();
modelBuilder.Conventions.Add(new DecimalPropertyConvention(18, 5));
}
}
}