多数据库保存
This commit is contained in:
1 parent
720cf26a59
commit
612c69fa1a
6 files changed
+393
-12
No files matched your search
@@ -0,0 +1,40 @@
|
||||
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; }
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user