//using SqlSugar; using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using System.Data.Entity; using System.Linq; using System.Web; namespace DSWeb.Common.DB { public class CommonDataContext : DbContext { //public SqlSugarClient SSC { get; set; } public CommonDataContext() : base("DongShengDB") { //string enString = base.Database.Connection.ConnectionString; //SSC = new SqlSugarClient(new ConnectionConfig() //{ // ConnectionString = enString,//连接符字串 // DbType = SqlSugar.DbType.SqlServer, //数据库类型 // IsAutoCloseConnection = true //不设成true要手动close //}); } public CommonDataContext(string conn) : base(conn) { //string enString = base.Database.Connection.ConnectionString; //SSC = new SqlSugarClient(new ConnectionConfig() //{ // ConnectionString = enString,//连接符字串 // DbType = SqlSugar.DbType.SqlServer, //数据库类型 // IsAutoCloseConnection = true //不设成true要手动close //}); } /* string enString = base.Database.Connection.ConnectionString; //var connstr = base.Configuration.GetConfigValue SSDb = new SqlSugarClient(new ConnectionConfig() { ConnectionString = enString,//连接符字串 DbType = SqlSugar.DbType.SqlServer, //数据库类型 IsAutoCloseConnection = true //不设成true要手动close }); */ public DbSet MailSend { get; set; } public DbSet MailSendSmtp { get; set; } public DbSet MpConfigs { get; set; } public DbSet code_FtpSet { get; set; } public DbSet OP_LOGICINFO { get; set; } public DbSet sys_param_set { get; set; } public DbSet OP_CTN { get; set; } public DbSet Op_INTERNALTRADE { get; set; } public DbSet info_client { get; set; } public DbSet code_fee { get; set; } public DbSet op_other { get; set; } public DbSet ch_fee { get; set; } public DbSet ch_fee_order { get; set; } public DbSet ch_fee_invoice { get; set; } public DbSet ch_fee_invoicedetail { get; set; } public DbSet code_goods_inv { get; set; } public DbSet ch_fee_do { get; set; } public DbSet company { get; set; } public DbSet v_op_bs { get; set; } public DbSet Info_Client_ACCDATE { get; set; } public DbSet v_fee_do_settlement { get; set; } public DbSet v_ch_fee_settlementinfo { get; set; } public DbSet VW_user { get; set; } public DbSet Receipt_Doc { get; set; } public DbSet code_cust_edi { get; set; } public DbSet code_fee_edi { get; set; } public DbSet op_seae_edi { get; set; } public DbSet op_seae_edi_ctn { get; set; } public DbSet OP_SuperVision_Truck { get; set; } public DbSet OP_SuperVision_Truck_Detail { get; set; } public DbSet op_task { get; set; } public DbSet op_task_fieldvalue { get; set; } public DbSet code_employee { get; set; } } }