using System; using System.Collections.Generic; using System.Data.Entity; using System.Linq; using System.Web; namespace DSWeb.Common.DbContexts { public class OpSeaePxDbContenxt : DbContext {//拼箱单表 public OpSeaePxDbContenxt() : base("DongShengDB") { } protected override void OnModelCreating(DbModelBuilder modelBuilder) { modelBuilder.Entity().ToTable("op_seae_px", "dbo").Property(a => a.TiJi).HasPrecision(18, 4); modelBuilder.Entity().ToTable("op_seae_px", "dbo").Property(a => a.MaoZhong).HasPrecision(18, 4); modelBuilder.Entity().ToTable("HuaTai_Insurance", "dbo").Property(a => a.ChargeRate).HasPrecision(18, 5); modelBuilder.Entity().ToTable("HuaTai_Insurance", "dbo").Property(a => a.InvoiceMoney).HasPrecision(18, 4); modelBuilder.Entity().ToTable("HuaTai_Insurance", "dbo").Property(a => a.Amt).HasPrecision(18, 4); modelBuilder.Entity().ToTable("HuaTai_Insurance", "dbo").Property(a => a.ExchangeRate).HasPrecision(18, 6); modelBuilder.Entity().ToTable("HuaTai_Insurance", "dbo").Property(a => a.Premium).HasPrecision(18, 4); modelBuilder.Entity().ToTable("code_insurance_exchange", "dbo").Property(a => a.EXChange).HasPrecision(18, 6); } public DbSet OpSeaePx { get; set; } public DbSet OpSeaePxs { get; set; } public DbSet PxAndDelat { get; set; } public DbSet OpSeaeDetalis { get; set; } public DbSet Users { get; set; } public DbSet ComNameInfo { get; set; } public DbSet SeaePxHscode { get; set; } public DbSet CustBalance { get; set; } public DbSet CustPrice { get; set; } public DbSet CustFee { get; set; } public DbSet SysParamSet { get; set; } public DbSet OpSeaePxTips { get; set; } //运踪表 public DbSet TrackYarDID { get; set; } public DbSet InfoClient { get; set; } public DbSet OpSeaeBilltrackDy { get; set; } public DbSet OpSeaeBillmanage { get; set; } //保险 public DbSet Insurance { get; set; } public DbSet OpSeaeEdi { get; set; } public DbSet TCurrencyCode { get; set; } public DbSet TSysCountryCode { get; set; } public DbSet CodeDisport { get; set; } public DbSet CodeLoadport { get; set; } public DbSet CompanyNew { get; set; } public DbSet UserBaseInfo { get; set; } public DbSet TsysCountryCodeCheckone { get; set; } public DbSet CodeInsuranceCurrency { get; set; } public DbSet CodeInsuranceExchange { get; set; } public DbSet InsuranceBack { get; set; } public DbSet InsuranceRider { get; set; } //微信询价 public DbSet OpSeaeTXJ { get; set; } public DbSet OpSeaeT { get; set; } public DbSet UserCompany { get; set; } public DbSet Company { get; set; } } }