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.

39 lines
2.2 KiB
C#

using System.Diagnostics;
using System;
using LinqToDB;
using TradeUsedSale.Repositories.Models;
using TradeUsedSale.Repositories.Utils;
namespace TradeUsedSale.Repositories
{
public class ErpDbContext : LinqToDB.Data.DataConnection
{
private static readonly Action<string, string, TraceLevel> TraceCallback = (message, msg, level) =>
Console.WriteLine($"{level}: {message}-{msg}");
public ErpDbContext() : base(LinqToDbExtensions.GetOptions())
{
TurnTraceSwitchOn();
WriteTraceLine = TraceCallback;
}
public ITable<DT_OrderInfo> DT_OrderInfo => this.GetTable<DT_OrderInfo>();
public ITable<DT_OrderXXInfo> DT_OrderXXInfo => this.GetTable<DT_OrderXXInfo>();
public ITable<DT_OrderGoods> DT_OrderGoods => this.GetTable<DT_OrderGoods>();
public ITable<HW_GoodsInfo> HW_GoodsInfo => this.GetTable<HW_GoodsInfo>();
public ITable<HW_GoodsDetail> HW_GoodsDetail => this.GetTable<HW_GoodsDetail>();
public ITable<DT_OrderReturn> DT_OrderReturn => this.GetTable<DT_OrderReturn>();
public ITable<DT_OrderUsedSalePlatform> DT_OrderUsedSalePlatform => this.GetTable<DT_OrderUsedSalePlatform>();
public ITable<JC_Shop> JC_Shop => this.GetTable<JC_Shop>();
public ITable<JC_UserInfo> JC_UserInfo => this.GetTable<JC_UserInfo>();
public ITable<CK_StorePostion> CK_StorePostion => this.GetTable<CK_StorePostion>();
public ITable<DT_ShopifyUsedSaleProduct> DT_ShopifyUsedSaleProduct => this.GetTable<DT_ShopifyUsedSaleProduct>();
public ITable<DT_ShopifyProductGoodsMap> DT_ShopifyProductGoodsMap => this.GetTable<DT_ShopifyProductGoodsMap>();
public ITable<HW_PostFee> HW_PostFee => this.GetTable<HW_PostFee>();
public ITable<DT_ShopifyUsedSaleOrder> DT_ShopifyUsedSaleOrder => this.GetTable<DT_ShopifyUsedSaleOrder>();
public ITable<DT_ShopifyUsedSaleOrderItem> DT_ShopifyUsedSaleOrderItem => this.GetTable<DT_ShopifyUsedSaleOrderItem>();
public ITable<DT_OrderUsedSaleApplyLog> DT_OrderUsedSaleApplyLog => this.GetTable<DT_OrderUsedSaleApplyLog>();
public ITable<DT_OrderUsedSaleApply> DT_OrderUsedSaleApply => this.GetTable<DT_OrderUsedSaleApply>();
}
}