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

28 lines
694 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>
public DbSet<HisPrescriptionInfo> PrescriptionInfo { get; set; }
/// <summary>
/// 药品信息
/// </summary>
public DbSet<HisDrugInfo> DrugInfo { get; set; }
}
}