wsd_djy/WebSiteCode/Cmdjy/CmdjyHisFront/Dal/HisFrontDbContext.cs

35 lines
996 B
C#
Raw Normal View History

using System.Data.Entity;
2019-03-25 16:32:58 +08:00
using CmdjyHisFront.Dal.Tables;
namespace CmdjyHisFront.Dal
{
/// <summary>
/// HIS前置机数据库
/// </summary>
public partial class HisFrontDbContext:DbContext
{
public HisFrontDbContext() : base("HisFrontDbContext") {
this.Database.CreateIfNotExists();
}
}
2019-03-25 16:32:58 +08:00
partial class HisFrontDbContext
{
/// <summary>
/// 处方信息
/// </summary>
2019-03-26 08:46:52 +08:00
public DbSet<DjyPrescriptionInfo> PrescriptionInfo { get; set; }
2019-03-25 16:32:58 +08:00
/// <summary>
/// 药品信息
/// </summary>
2019-03-26 08:46:52 +08:00
public DbSet<DjyDrugInfo> DrugInfo { get; set; }
/// <summary>
/// 处方上传记录
/// </summary>
public DbSet<DjyPrescriptionInfoLog> PrescriptionInfoLogs { get; set; }
/// <summary>
/// 药品上传记录
/// </summary>
public DbSet<DjyDrugInfoLog> DrugInfoLogs { get; set; }
2019-03-25 16:32:58 +08:00
}
}