HKC_Blazor/MasaBlazorApp3/DataAccess/AppDataConnection.cs

36 lines
1.3 KiB
C#

using Google.Protobuf.Compiler;
using LinqToDB;
using LinqToDB.Data;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using MasaBlazorApp3.Pojo;
namespace MasaBlazorApp3.DataAccess
{
public class AppDataConnection : DataConnection
{
public AppDataConnection(DataOptions<AppDataConnection> options)
: base(options.Options)
{
}
public ITable<User> User => this.GetTable<User>();
public ITable<Role> Role => this.GetTable<Role>();
public ITable<ChannelList> ChannelList => this.GetTable<ChannelList>();
public ITable<ChannelStock> ChannelStock => this.GetTable<ChannelStock>();
public ITable<DrugInfo> DrugInfo => this.GetTable<DrugInfo>();
public ITable<DrugManuNo> DrugManuNo => this.GetTable<DrugManuNo>();
public ITable<OrderInfo> OrderInfo => this.GetTable<OrderInfo>();
public ITable<OrderDetail> OrderDetail => this.GetTable<OrderDetail>();
public ITable<MachineRecord> MachineRecord => this.GetTable<MachineRecord>();
public ITable<InOutInvoice> InOutInvoice => this.GetTable<InOutInvoice>();
public ITable<AccountBook> AccountBook => this.GetTable<AccountBook>();
}
}