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

12 lines
328 B
C#
Raw Normal View History

using System.Data.Entity.Migrations;
namespace CmdjyHisFront.Dal
{
public class DbConfig:DbMigrationsConfiguration<HisFrontDbContext>
{
public DbConfig() {
AutomaticMigrationsEnabled = WebSettings.AutoMigrations;
AutomaticMigrationDataLossAllowed = false;
}
}
}