Files
8357WMS/HHWMS.Web/DataContext2.cs
T
2023-12-22 15:53:26 +08:00

41 lines
1016 B
C#

using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using HHWMS.Web.Models;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Design;
using WalkingTec.Mvvm.Core;
using WalkingTec.Mvvm.Core.Extensions;
namespace HHWMS.Web
{
public class DataContext2 : FrameworkContext
{
public DataContext2(CS cs)
: base(cs)
{
}
public DataContext2(string cs, DBTypeEnum dbtype)
: base(cs, dbtype)
{
}
public DataContext2(string cs, DBTypeEnum dbtype, string version = null)
: base(cs, dbtype, version)
{
}
public DataContext2(DbContextOptions<DataContext2> options) : base(options) { }
public DbSet<ReceiptHeader2> ReceiptHeader2s { get; set; }
public DbSet<ReceiptDetail2> ReceiptDetail2s { get; set; }
}
}