From b1515c77a834bf4853ea62929a164d5a4e696f91 Mon Sep 17 00:00:00 2001 From: falcon <9504402@qq.com> Date: Fri, 22 Mar 2019 17:09:45 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A6=82=E6=9E=9C=E6=95=B0=E6=8D=AE=E5=BA=93?= =?UTF-8?q?=E4=B8=8D=E5=AD=98=E5=9C=A8=E7=94=9F=E6=88=90=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E5=BA=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- WebSiteCode/Cmdjy/CmdjyHisFront/Dal/HisFrontDbContext.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/WebSiteCode/Cmdjy/CmdjyHisFront/Dal/HisFrontDbContext.cs b/WebSiteCode/Cmdjy/CmdjyHisFront/Dal/HisFrontDbContext.cs index bb9a7e7..e6039f1 100644 --- a/WebSiteCode/Cmdjy/CmdjyHisFront/Dal/HisFrontDbContext.cs +++ b/WebSiteCode/Cmdjy/CmdjyHisFront/Dal/HisFrontDbContext.cs @@ -3,10 +3,12 @@ namespace CmdjyHisFront.Dal { /// - /// HIS前置机数据库h + /// HIS前置机数据库 /// public partial class HisFrontDbContext:DbContext { - public HisFrontDbContext() : base("HisFrontDbContext") { } + public HisFrontDbContext() : base("HisFrontDbContext") { + this.Database.CreateIfNotExists(); + } } } \ No newline at end of file