|
|
|
|
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<Model.OpSeaePx>().ToTable("op_seae_px", "dbo").Property(a => a.TiJi).HasPrecision(18, 4);
|
|
|
|
|
modelBuilder.Entity<Model.OpSeaePx>().ToTable("op_seae_px", "dbo").Property(a => a.MaoZhong).HasPrecision(18, 4);
|
|
|
|
|
modelBuilder.Entity<Model.Insurance>().ToTable("HuaTai_Insurance", "dbo").Property(a => a.ChargeRate).HasPrecision(18, 5);
|
|
|
|
|
modelBuilder.Entity<Model.Insurance>().ToTable("HuaTai_Insurance", "dbo").Property(a => a.InvoiceMoney).HasPrecision(18, 4);
|
|
|
|
|
modelBuilder.Entity<Model.Insurance>().ToTable("HuaTai_Insurance", "dbo").Property(a => a.Amt).HasPrecision(18, 4);
|
|
|
|
|
modelBuilder.Entity<Model.Insurance>().ToTable("HuaTai_Insurance", "dbo").Property(a => a.ExchangeRate).HasPrecision(18, 6);
|
|
|
|
|
modelBuilder.Entity<Model.Insurance>().ToTable("HuaTai_Insurance", "dbo").Property(a => a.Premium).HasPrecision(18, 4);
|
|
|
|
|
modelBuilder.Entity<Model.CodeInsuranceExchange>().ToTable("code_insurance_exchange", "dbo").Property(a => a.EXChange).HasPrecision(18, 6);
|
|
|
|
|
}
|
|
|
|
|
public DbSet<Model.OpSeaePx> OpSeaePx { get; set; }
|
|
|
|
|
public DbSet<Model.OpSeaePxs> OpSeaePxs { get; set; }
|
|
|
|
|
public DbSet<Model.PxAndDelat> PxAndDelat { get; set; }
|
|
|
|
|
public DbSet<Model.OpSeaeDetalis> OpSeaeDetalis { get; set; }
|
|
|
|
|
public DbSet<Model.Users> Users { get; set; }
|
|
|
|
|
public DbSet<Model.ComNameInfo> ComNameInfo { get; set; }
|
|
|
|
|
public DbSet<Model.SeaePxHscode> SeaePxHscode { get; set; }
|
|
|
|
|
public DbSet<Model.CustBalance> CustBalance { get; set; }
|
|
|
|
|
public DbSet<Model.CustPrice> CustPrice { get; set; }
|
|
|
|
|
public DbSet<Model.CustFee> CustFee { get; set; }
|
|
|
|
|
public DbSet<Model.SysParamSet> SysParamSet { get; set; }
|
|
|
|
|
public DbSet<Model.OpSeaePxTips> OpSeaePxTips { get; set; }
|
|
|
|
|
//运踪表
|
|
|
|
|
public DbSet<Model.billtrack_YarDid> TrackYarDID { get; set; }
|
|
|
|
|
public DbSet<Model.InfoClient> InfoClient { get; set; }
|
|
|
|
|
public DbSet<Model.OpSeaeBilltrackDy> OpSeaeBilltrackDy { get; set; }
|
|
|
|
|
public DbSet<Model.OpSeaeBillmanage> OpSeaeBillmanage { get; set; }
|
|
|
|
|
//保险
|
|
|
|
|
public DbSet<Model.Insurance> Insurance { get; set; }
|
|
|
|
|
public DbSet<Model.op_seae_edi> OpSeaeEdi { get; set; }
|
|
|
|
|
public DbSet<Model.TCurrencyCode> TCurrencyCode { get; set; }
|
|
|
|
|
public DbSet<Model.TSysCountryCode> TSysCountryCode { get; set; }
|
|
|
|
|
public DbSet<Model.CodeDisport> CodeDisport { get; set; }
|
|
|
|
|
public DbSet<Model.CodeLoadport> CodeLoadport { get; set; }
|
|
|
|
|
public DbSet<Model.CompanyNew> CompanyNew { get; set; }
|
|
|
|
|
public DbSet<Model.UserBaseInfo> UserBaseInfo { get; set; }
|
|
|
|
|
public DbSet<Model.TsysCountryCodeCheckone> TsysCountryCodeCheckone { get; set; }
|
|
|
|
|
public DbSet<Model.CodeInsuranceCurrency> CodeInsuranceCurrency { get; set; }
|
|
|
|
|
public DbSet<Model.CodeInsuranceExchange> CodeInsuranceExchange { get; set; }
|
|
|
|
|
public DbSet<Model.InsuranceBack> InsuranceBack { get; set; }
|
|
|
|
|
public DbSet<Model.InsuranceRider> InsuranceRider { get; set; }
|
|
|
|
|
//微信询价
|
|
|
|
|
public DbSet<Model.OpSeaeTXJ> OpSeaeTXJ { get; set; }
|
|
|
|
|
public DbSet<Model.OpSeaeT> OpSeaeT { get; set; }
|
|
|
|
|
public DbSet<Model.UserCompany> UserCompany { get; set; }
|
|
|
|
|
public DbSet<Model.Company> Company { get; set; }
|
|
|
|
|
}
|
|
|
|
|
}
|