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.
24 lines
680 B
C#
24 lines
680 B
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_OrderReturn> DT_OrderReturn => this.GetTable<DT_OrderReturn>();
|
|
}
|
|
}
|