如果数据库不存在生成数据库

This commit is contained in:
falcon 2019-03-22 17:09:45 +08:00
parent 2c00f5902f
commit b1515c77a8

View File

@ -3,10 +3,12 @@
namespace CmdjyHisFront.Dal
{
/// <summary>
/// HIS前置机数据库h
/// HIS前置机数据库
/// </summary>
public partial class HisFrontDbContext:DbContext
{
public HisFrontDbContext() : base("HisFrontDbContext") { }
public HisFrontDbContext() : base("HisFrontDbContext") {
this.Database.CreateIfNotExists();
}
}
}