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.
DS7/DSWeb.Common/DB/CommonDataContext.cs

97 lines
3.6 KiB
C#

//using SqlSugar;
using System;
2 years ago
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; }
2 years ago
public CommonDataContext() : base("DongShengDB")
{
//string enString = base.Database.Connection.ConnectionString;
2 years ago
//SSC = new SqlSugarClient(new ConnectionConfig()
//{
// ConnectionString = enString,//连接符字串
// DbType = SqlSugar.DbType.SqlServer, //数据库类型
// IsAutoCloseConnection = true //不设成true要手动close
//});
2 years ago
}
public CommonDataContext(string conn) : base(conn)
{
//string enString = base.Database.Connection.ConnectionString;
2 years ago
//SSC = new SqlSugarClient(new ConnectionConfig()
//{
// ConnectionString = enString,//连接符字串
// DbType = SqlSugar.DbType.SqlServer, //数据库类型
// IsAutoCloseConnection = true //不设成true要手动close
//});
2 years ago
}
/*
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
});
*/
2 years ago
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_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; }
2 years ago
public DbSet<code_cust_edi_md> code_cust_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; }
2 years ago
2 years ago
}
}