41 lines
1016 B
C#
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; }
|
|
|
|
}
|
|
|
|
|
|
}
|