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 TraceCallback = (message, msg, level) => Console.WriteLine($"{level}: {message}-{msg}"); public ErpDbContext() : base(LinqToDbExtensions.GetOptions()) { TurnTraceSwitchOn(); WriteTraceLine = TraceCallback; } public ITable DT_OrderInfo => this.GetTable(); public ITable DT_OrderXXInfo => this.GetTable(); public ITable DT_OrderGoods => this.GetTable(); public ITable HW_GoodsInfo => this.GetTable(); public ITable HW_GoodsDetail => this.GetTable(); public ITable DT_OrderReturn => this.GetTable(); public ITable DT_OrderUsedSalePlatform => this.GetTable(); public ITable JC_Shop => this.GetTable(); public ITable JC_UserInfo => this.GetTable(); public ITable CK_StorePostion => this.GetTable(); } }