You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
106 lines
4.0 KiB
C#
106 lines
4.0 KiB
C#
//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> MailSend { get; set; }
|
|
public DbSet<MailSendSmtp> MailSendSmtp { get; set; }
|
|
public DbSet<MpConfigInfo> MpConfigs { get; set; }
|
|
|
|
public DbSet<code_FtpSet_md> code_FtpSet { get; set; }
|
|
|
|
public DbSet<OP_LOGICINFO_md> OP_LOGICINFO { get; set; }
|
|
|
|
public DbSet<sys_param_set_md> sys_param_set { get; set; }
|
|
|
|
public DbSet<op_ctn_md> OP_CTN { get; set; }
|
|
|
|
public DbSet<Op_INTERNALTRADEmd> Op_INTERNALTRADE { get; set; }
|
|
public DbSet<info_client_md> info_client { get; set; }
|
|
public DbSet<code_fee_md> code_fee { get; set; }
|
|
|
|
public DbSet<op_other_md> op_other { get; set; }
|
|
public DbSet<ch_fee_md> ch_fee { get; set; }
|
|
|
|
public DbSet<ch_fee_order_md> ch_fee_order { get; set; }
|
|
public DbSet<ch_fee_invoice_md> ch_fee_invoice { get; set; }
|
|
public DbSet<ch_fee_invoicedetail_md> ch_fee_invoicedetail { get; set; }
|
|
public DbSet<code_goods_inv_md> code_goods_inv { get; set; }
|
|
|
|
public DbSet<ch_fee_do_md> ch_fee_do { get; set; }
|
|
|
|
public DbSet<company_md> company { get; set; }
|
|
|
|
public DbSet<v_op_bs_mb> v_op_bs { get; set; }
|
|
|
|
public DbSet<Info_Client_ACCDATE_mb> Info_Client_ACCDATE { get; set; }
|
|
|
|
public DbSet<v_fee_do_settlement_md> v_fee_do_settlement { get; set; }
|
|
|
|
public DbSet<v_ch_fee_settlementinfo_md> v_ch_fee_settlementinfo { get; set; }
|
|
public DbSet<VW_user_md> VW_user { get; set; }
|
|
public DbSet<Receipt_Doc_md> Receipt_Doc { get; set; }
|
|
|
|
public DbSet<code_cust_edi_md> code_cust_edi { get; set; }
|
|
public DbSet<code_fee_edi_md> code_fee_edi { get; set; }
|
|
|
|
public DbSet<op_seae_edi_md> op_seae_edi { get; set; }
|
|
public DbSet<op_seae_edi_ctn_md> op_seae_edi_ctn { get; set; }
|
|
|
|
public DbSet<OP_SuperVision_Truck_md> OP_SuperVision_Truck { get; set; }
|
|
public DbSet<OP_SuperVision_Truck_Detail_md> OP_SuperVision_Truck_Detail { get; set; }
|
|
|
|
public DbSet<op_task_md> op_task { get; set; }
|
|
public DbSet<op_task_fieldvalue_md> op_task_fieldvalue { get; set; }
|
|
public DbSet<code_employee_md> code_employee { get; set; }
|
|
public DbSet<LicenseDocu_md> LicenseDocu { get; set; }
|
|
public DbSet<sys_b_Port_md> sys_b_Port { get; set; }
|
|
|
|
}
|
|
|
|
|
|
} |